资 源 简 介
一个基于聊天的程序,通过这个小程序的学习你可以学到如何使用套接字进行网络编程、自定义消息、多线程方面的编程思想以及学习使用各种控件。
本程序利用Socket套接字将主程序分为服务端和客户端两个部分。采用了UDP和TCP/IP相结合,有效提高了数据传输的时效性和稳定性。本程序还用到了多线程编程,用来解决程序自身阻塞的问题。
-A chat-based procedures, the adoption of this small program you can study and learn how to use the socket network programming, since the definition of news, multi-threaded programming aspects of thinking and learning using a variety of controls. This procedure will use the main program is divided into Socket socket server and client in two parts. Adopted UDP and TCP/IP combination effectively improved the timeliness of data transmission and stability. This procedure is also used in a multi-threaded programming procedures to solve their own congestion.