文件名称:Socket-TCP-COM
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-12-24
- 文件大小:
- 128kb
- 下载次数:
- 0次
- 提 供 者:
- 王**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
该源码使用异步Socket方式实现TCP网络通讯,可以通过自己增加相应通信协议类来适应不同通信需求下的数据传输。
1、TcpCSfr a mework 为异步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, TcpCSfr a mework Asynchronous Socket communication fr a mework
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
1、TcpCSfr a mework 为异步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, TcpCSfr a mework Asynchronous Socket communication fr a mework
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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TcpClient\bin\Debug\TcpClient.exe
.........\...\.....\TcpClient.pdb
.........\...\.....\TcpClient.vshost.exe
.........\...\.....\TcpCSFramework.dll
.........\...\.....\TcpCSFramework.pdb
.........\obj\Debug\ResolveAssemblyReference.cache
.........\...\.....\TcpClient.exe
.........\...\.....\TcpClient.pdb
.........\...\TcpClient.csproj.FileList.txt
.........\...\TcpClient.csproj.FileListAbsolute.txt
.........\Properties\AssemblyInfo.cs
.........\TcpClient.cs
.........\TcpClient.csproj
....SFramework\bin\Debug\TcpCSFramework.dll
..............\...\.....\TcpCSFramework.pdb
..............\Coder.cs
..............\DatagramResolver.cs
..............\FrameWork.cs
..............\NetEventArgs.cs
..............\obj\Debug\Refactor\TcpCSFramework.dll
..............\...\.....\TcpCSFramework.dll
..............\...\.....\TcpCSFramework.pdb
..............\...\TcpCSFramework.csproj.FileList.txt
..............\...\TcpCSFramework.csproj.FileListAbsolute.txt
..............\Properties\AssemblyInfo.cs
..............\Session.cs
..............\SessionId.cs
..............\TcpCSFramework.csproj
.CPServer\bin\Debug\TcpCSFramework.dll
.........\...\.....\TcpCSFramework.pdb
.........\...\.....\TCPServer.exe
.........\...\.....\TCPServer.pdb
.........\...\.....\TCPServer.vshost.exe
.........\myTcpServer.cs
.........\obj\Debug\TCPServer.exe
.........\...\.....\TCPServer.pdb
.........\...\TCPServer.csproj.FileList.txt
.........\...\TCPServer.csproj.FileListAbsolute.txt
.........\Properties\AssemblyInfo.cs
.........\TCPServer.csproj
.........\TCPServer.csproj.user
TCP.sln
TCP.suo
使用说明.txt
TcpClient\obj\Debug\TempPE
....SFramework\obj\Debug\Refactor
..............\...\.....\TempPE
.CPServer\obj\Debug\Refactor
.........\...\.....\TempPE
.cpClient\bin\Debug
.........\obj\Debug
....SFramework\bin\Debug
..............\obj\Debug
.CPServer\bin\Debug
.........\obj\Debug
.cpClient\bin
.........\obj
.........\Properties
....SFramework\bin
..............\obj
..............\Properties
.CPServer\bin
.........\obj
.........\Properties
TcpClient
TcpCSFramework
TCPServer