Skip to content

A simple socket server and client in python/c++/shell across linux/windows platform.

Notifications You must be signed in to change notification settings

chenxinfeng4/socket-server-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket server and client template


It's a simple template of echo server for socket communication. It contains python, c++, shell languages across linux, windows platforms.

How to use


Python

$ python socket_server_client/python/socket_server.py
$ python socket_server_client/python/socket_client.py

C++ linux

$ cd socket_server_client/linux_cpp
$ g++ -Wall socket_server.cpp -o socket_server
$ g++ -Wall socket_client.cpp -o socket_client
$ ./socket_server
$ ./socket_client

C++ windows QT

After built on QT5

> socket_server_client/qt_cpp/socket_server/socket_server.exe
> socket_server_client/qt_cpp/socket_client/socket_client.exe

Shell

$ bash socket_server_client/shell/socket_server_socat.sh
$ bash socket_server_client/shell/socket_client_nc.sh

About

A simple socket server and client in python/c++/shell across linux/windows platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published