且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过互联网连接计算机

更新时间:2023-01-30 08:13:16

[
嘿!给定的链接可能会对您有所帮助.
使用.NET连接两台计算机[ 建立连接并发送数据[ ^ ]

同步客户端套接字示例[ 同步服务器套接字示例[
hey! the given links might help you.
Connect 2 Computers with .NET[^]
Making a Connection and Sending Data[^]
and
Synchronous Client Socket Example[^] & Synchronous Server Socket Example[^]


首先阅读有关TcpClient和UdpClient以及相应的服务器类.这些将形成跨计算机通信的最低级别的管理层. (通常是TCP还是UDP,具体取决于您的情况.)

您可以通过在CodeProject上进行搜索来找到聊天客户端的示例.
Start by reading about the TcpClient and UdpClient, and the corresponding server classes. These will form the lowest level managed layer for cross-computer communication. (Either TCP or UDP, generally, depending on what your scenario is.)

You can find examples of chat clients by searching here on CodeProject.