c# socket 异步通信

上传者: u014649651 | 上传时间: 2022-12-04 16:30:16 | 文件大小: 100KB | 文件类型: ZIP
一个服务器端和多个客户端的Socket通信。启动服务端后,服务端通过持续监听客户端发来的请求,一旦监听到客户端传来的信息后,两端便可以互发信息了。服务器端需要绑定一个IP和端口号,用于客户端在网络中寻找并建立连接。信息发送原理:将手动输入字符串信息转换成机器可以识别的字节数组,然后调用套接字的Send()方法将字节数组发送出去

文件下载

资源详情

[{"title":"( 47 个子文件 100KB ) c# socket 异步通信","children":[{"title":"Socket_Fyw","children":[{"title":"SocketTest.suo <span style='color:#111;'> 30.50KB </span>","children":null,"spread":false},{"title":"SocketTest","children":[{"title":"bin","children":[{"title":"Release","children":null,"spread":false},{"title":"Debug","children":[{"title":"SocketTest.exe <span style='color:#111;'> 13.00KB </span>","children":null,"spread":false},{"title":"SocketTest.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"SocketTest.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"SocketTest.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 496B </span>","children":null,"spread":false},{"title":"FormServer.cs <span style='color:#111;'> 4.92KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"SocketTest.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"SocketTest.csprojResolveAssemblyReference.cache <span style='color:#111;'> 11.26KB </span>","children":null,"spread":false},{"title":"SocketTest.csproj.GenerateResource.Cache <span style='color:#111;'> 980B </span>","children":null,"spread":false},{"title":"SocketTest.exe <span style='color:#111;'> 13.00KB </span>","children":null,"spread":false},{"title":"SocketTest.FormServer.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 5.29KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"SocketTest.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"SocketTest.csproj.FileListAbsolute.txt <span style='color:#111;'> 721B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"SocketTest.csproj <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"FormServer.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"FormServer.Designer.cs <span style='color:#111;'> 6.76KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"SocketTest.sln <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"SocketClient","children":[{"title":"bin","children":[{"title":"Release","children":null,"spread":false},{"title":"Debug","children":[{"title":"SocketClient.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"SocketClient.exe <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"SocketClient.pdb <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false},{"title":"SocketClient.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"FormClient.cs <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 498B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"SocketClient.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"SocketClient.exe <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"SocketClient.csproj.GenerateResource.Cache <span style='color:#111;'> 980B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 5.29KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"SocketClient.pdb <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false},{"title":"SocketClient.csproj.FileListAbsolute.txt <span style='color:#111;'> 656B </span>","children":null,"spread":false},{"title":"SocketClient.FormClient.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"FormClient.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"FormClient.Designer.cs <span style='color:#111;'> 5.75KB </span>","children":null,"spread":false},{"title":"SocketClient.csproj <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明