Location:
Search - tcpserver.exe
Search list
Description: TCP_IP 的客户端与服务端的详细源码-TCP_IP client and service side of the detailed source
Platform: |
Size: 18480128 |
Author: mjj831205 |
Hits:
Description: 该源码使用异步Socket方式实现TCP网络通讯,可以通过自己增加相应通信协议类来适应不同通信需求下的数据传输。
1、TcpCSFramework 为异步Socket通信框架
2、TcpClient 为TCP客户端
3、TCPServer 为TCP服务器端
测试使用说明:
1、先启动TcpServer下Bin/Bebug里的TCPServer.exe,启动命令为 start ,当看到 Server is listen... 说明启动成功
2、再启动TcpClient下Bin/Bebug里的TcpClient.exe,连接服务器命令为 conn 服务器IP地址 服务端口号 注意中间用空格隔开
3、从服务器端发送数据到客户端,命令如下 send session {[数据内容]}
4、从客户端发送数据到服务器端,命令如下 send {[数据内容]}
5、退出服务器和客户端命令都为 exit
6、其他命令请参考源码里相关代码-The source Asynchronous Socket TCP network communication, data transmission to adapt to the different communication needs through an increase of the corresponding communication protocol class.
1, TcpCSFramework Asynchronous Socket communication framework
2, TcpClient TCP client
3, TCPServer TCP Server
Test Instructions:
First start the the where the TCPServer.exe TcpServer under Bin/Bebug start command for the start, when you see that Server is listen ... started successfully
2, and then start the the the TcpClient next Bin/Bebug TcpClient.exe, connect to the server command conn server IP address port number Note separated by a space
Send data from the server side to the client, the command follows the send the session {[data content]}
4, to send data from the client to the server, the command follows the send {[data content]}
5, exit the server and the client command for the exit
6 other command to please reference source code
Platform: |
Size: 131072 |
Author: 王崇洋 |
Hits:
Description: 一个服务器程序,一个客户机程序,双方通过TCP方式传输数据。
Bin\TCPServer.exe是服务器程序。
Bin\TCPClient.exe是客户机程序。
打开TCPDemo目录下的WsClientServer.dsw文件,可以同时浏览该目录下所有
项目。-A server program and a client program, the two sides to transfer data via TCP mode. The Bin \ TCPServer.exe server program. The Bin \ TCPClient.exe client program. Open the the files of TCPDemo directory WsClientServer.dsw, can browse the directory of all projects.
Platform: |
Size: 28672 |
Author: lanxiaoming |
Hits: