文件名称: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
(系统自动生成,下载前可以参看下载内容)

下载文件列表





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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org