joe 0fbb93fc97 update sample code, more neatly vor 4 Jahren
..
tcpws 0fbb93fc97 update sample code, more neatly vor 4 Jahren
Makefile b3e064aa76 add sample code vor 4 Jahren
README.md b3e064aa76 add sample code vor 4 Jahren

README.md

Sample

sample code for tcp&websocket

Usage

Compile

# build
$make
# see usage
$./sample

Test TCP

# first console window
$./sample tcpserver

# then open another console window
$./sample tcpclient

Test Websocket

# first console window
$./sample wsserver

# then open another console window
$./sample wsclient

Notice: TCP using the same port as Websocket server.