tcpsockets

所属分类:网络编程
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2017-11-13 00:26:02
上 传 者sh-1993
说明:  来自我的C++中的TCP IP网络编程设计模式和具有超时功能的TCP IP套接字博客的示例源代码。,
(Example source code from my TCP IP Network Programming Design Patterns in C++ and TCP IP Sockets with Time Out Capabilities blogs.,)

文件列表:
Makefile (366, 2017-11-12)
Makefile.client (330, 2017-11-12)
Makefile.client_timeout (346, 2017-11-12)
Makefile.server (330, 2017-11-12)
Makefile.server_pause (312, 2017-11-12)
Makefile.server_timeout (346, 2017-11-12)
client.cpp (1795, 2017-11-12)
client_timeout.cpp (2286, 2017-11-12)
server.cpp (1656, 2017-11-12)
server_pause.cpp (1563, 2017-11-12)
server_timeout.cpp (1676, 2017-11-12)
tcpacceptor.cpp (2357, 2017-11-12)
tcpacceptor.h (1204, 2017-11-12)
tcpconnector.cpp (4137, 2017-11-12)
tcpconnector.h (1132, 2017-11-12)
tcpstream.cpp (1866, 2017-11-12)
tcpstream.h (1557, 2017-11-12)

# tcpsockets Example source code from my TCP/IP Network Programming Design Patterns in C++ and TCP/IP Sockets with Time Out Capabilities blogs. ## Build 1. cd to the `tcpsockets` directory. 2. Type `make` to build all the clients and servers ## Run client and server 1. Type `server []` where is the IP address of the network interface where you want to listen for and accept connections. If you don't specify an IP address the server will listen on all network interfaces. 2. Type `client ` where is the IP address of the server you started in step 1. NOTE: If you are running client and server on the same system you can just use `localhost` for ``. ## Run client and server with time out 1. Type `server_pause ` to start a server that binds to any IP address and the pasue port you specify, but never listens for connection requests. 2. Type `server_timeout

近期下载者

相关文件


收藏者