|
|
3 years ago | |
|---|---|---|
| .. | ||
| tcpws | 3 years ago | |
| Makefile | 4 years ago | |
| README.md | 4 years ago | |
sample code for tcp&websocket
# build
$make
# see usage
$./sample
# first console window
$./sample tcpserver
# then open another console window
$./sample tcpclient
# first console window
$./sample wsserver
# then open another console window
$./sample wsclient
Notice: TCP using the same port as Websocket server.