摘要
介绍了使用Visual C#语言在TCP/IP网络中实现通信的方法,通过利用.NET框架提供的TcpClient类和TcpListener类分别建立服务器端和客户端,然后使用这两类提供的方法可完成网络通信中数据的收发。通过实验证明,生成的界面友好,编写的程序也可较好地完成通信功能。
This paper introduces the use of Visual C# language to communicate in TCP/IP network. The Tcp- Client class and the TcpListener class provided by . NET framework are employed to build the server and clients. Then methods of these two classes can realize sending and receiving messages. It is shown that the software interface is friendly and the program can accomplish communication well.
出处
《电子科技》
2013年第11期151-153,共3页
Electronic Science and Technology