CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 C#编程

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

下载文件列表

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

相关说明

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

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com