文件名称:Socket-TCP-COM
-
所属分类:
- 标签属性:
- 上传时间:2013-01-01
-
文件大小:128.25kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
该源码使用异步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
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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TcpClient/bin/Debug/TcpClient.exe
TcpClient/bin/Debug/TcpClient.pdb
TcpClient/bin/Debug/TcpClient.vshost.exe
TcpClient/bin/Debug/TcpCSFramework.dll
TcpClient/bin/Debug/TcpCSFramework.pdb
TcpClient/obj/Debug/ResolveAssemblyReference.cache
TcpClient/obj/Debug/TcpClient.exe
TcpClient/obj/Debug/TcpClient.pdb
TcpClient/obj/TcpClient.csproj.FileList.txt
TcpClient/obj/TcpClient.csproj.FileListAbsolute.txt
TcpClient/Properties/AssemblyInfo.cs
TcpClient/TcpClient.cs
TcpClient/TcpClient.csproj
TcpCSFramework/bin/Debug/TcpCSFramework.dll
TcpCSFramework/bin/Debug/TcpCSFramework.pdb
TcpCSFramework/Coder.cs
TcpCSFramework/DatagramResolver.cs
TcpCSFramework/FrameWork.cs
TcpCSFramework/NetEventArgs.cs
TcpCSFramework/obj/Debug/Refactor/TcpCSFramework.dll
TcpCSFramework/obj/Debug/TcpCSFramework.dll
TcpCSFramework/obj/Debug/TcpCSFramework.pdb
TcpCSFramework/obj/TcpCSFramework.csproj.FileList.txt
TcpCSFramework/obj/TcpCSFramework.csproj.FileListAbsolute.txt
TcpCSFramework/Properties/AssemblyInfo.cs
TcpCSFramework/Session.cs
TcpCSFramework/SessionId.cs
TcpCSFramework/TcpCSFramework.csproj
TCPServer/bin/Debug/TcpCSFramework.dll
TCPServer/bin/Debug/TcpCSFramework.pdb
TCPServer/bin/Debug/TCPServer.exe
TCPServer/bin/Debug/TCPServer.pdb
TCPServer/bin/Debug/TCPServer.vshost.exe
TCPServer/myTcpServer.cs
TCPServer/obj/Debug/TCPServer.exe
TCPServer/obj/Debug/TCPServer.pdb
TCPServer/obj/TCPServer.csproj.FileList.txt
TCPServer/obj/TCPServer.csproj.FileListAbsolute.txt
TCPServer/Properties/AssemblyInfo.cs
TCPServer/TCPServer.csproj
TCPServer/TCPServer.csproj.user
TCP.sln
TCP.suo
使用说明.txt
from.gif
TcpClient/obj/Debug/TempPE
TcpCSFramework/obj/Debug/Refactor
TcpCSFramework/obj/Debug/TempPE
TCPServer/obj/Debug/Refactor
TCPServer/obj/Debug/TempPE
TcpClient/bin/Debug
TcpClient/obj/Debug
TcpCSFramework/bin/Debug
TcpCSFramework/obj/Debug
TCPServer/bin/Debug
TCPServer/obj/Debug
TcpClient/bin
TcpClient/obj
TcpClient/Properties
TcpCSFramework/bin
TcpCSFramework/obj
TcpCSFramework/Properties
TCPServer/bin
TCPServer/obj
TCPServer/Properties
TcpClient
TcpCSFramework
TCPServer
TcpClient/bin/Debug/TcpClient.pdb
TcpClient/bin/Debug/TcpClient.vshost.exe
TcpClient/bin/Debug/TcpCSFramework.dll
TcpClient/bin/Debug/TcpCSFramework.pdb
TcpClient/obj/Debug/ResolveAssemblyReference.cache
TcpClient/obj/Debug/TcpClient.exe
TcpClient/obj/Debug/TcpClient.pdb
TcpClient/obj/TcpClient.csproj.FileList.txt
TcpClient/obj/TcpClient.csproj.FileListAbsolute.txt
TcpClient/Properties/AssemblyInfo.cs
TcpClient/TcpClient.cs
TcpClient/TcpClient.csproj
TcpCSFramework/bin/Debug/TcpCSFramework.dll
TcpCSFramework/bin/Debug/TcpCSFramework.pdb
TcpCSFramework/Coder.cs
TcpCSFramework/DatagramResolver.cs
TcpCSFramework/FrameWork.cs
TcpCSFramework/NetEventArgs.cs
TcpCSFramework/obj/Debug/Refactor/TcpCSFramework.dll
TcpCSFramework/obj/Debug/TcpCSFramework.dll
TcpCSFramework/obj/Debug/TcpCSFramework.pdb
TcpCSFramework/obj/TcpCSFramework.csproj.FileList.txt
TcpCSFramework/obj/TcpCSFramework.csproj.FileListAbsolute.txt
TcpCSFramework/Properties/AssemblyInfo.cs
TcpCSFramework/Session.cs
TcpCSFramework/SessionId.cs
TcpCSFramework/TcpCSFramework.csproj
TCPServer/bin/Debug/TcpCSFramework.dll
TCPServer/bin/Debug/TcpCSFramework.pdb
TCPServer/bin/Debug/TCPServer.exe
TCPServer/bin/Debug/TCPServer.pdb
TCPServer/bin/Debug/TCPServer.vshost.exe
TCPServer/myTcpServer.cs
TCPServer/obj/Debug/TCPServer.exe
TCPServer/obj/Debug/TCPServer.pdb
TCPServer/obj/TCPServer.csproj.FileList.txt
TCPServer/obj/TCPServer.csproj.FileListAbsolute.txt
TCPServer/Properties/AssemblyInfo.cs
TCPServer/TCPServer.csproj
TCPServer/TCPServer.csproj.user
TCP.sln
TCP.suo
使用说明.txt
from.gif
TcpClient/obj/Debug/TempPE
TcpCSFramework/obj/Debug/Refactor
TcpCSFramework/obj/Debug/TempPE
TCPServer/obj/Debug/Refactor
TCPServer/obj/Debug/TempPE
TcpClient/bin/Debug
TcpClient/obj/Debug
TcpCSFramework/bin/Debug
TcpCSFramework/obj/Debug
TCPServer/bin/Debug
TCPServer/obj/Debug
TcpClient/bin
TcpClient/obj
TcpClient/Properties
TcpCSFramework/bin
TcpCSFramework/obj
TcpCSFramework/Properties
TCPServer/bin
TCPServer/obj
TCPServer/Properties
TcpClient
TcpCSFramework
TCPServer
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.