Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 834 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 834 Bytes

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