1. Mode: Client/Server (C/S Mode)
2. network connection process:
3. namespace used
System. NET, System. NET. Socket, System. System. Threading
Http://msdn.microsoft.com/library/chs/default.asp? Url =/library/CHS/cpref/html/frlrfSystemWindowsFormsProgressBarClassTopic. asp
Http://msdn.microsoft.com/library/chs/default.asp? Url =/library/CHS/cpref/html/frlrfSystemWindowsFormsProgressBarClassTopic. asp
Http://msdn.microsoft.com/library/chs/default.asp? Url =/library/CHS/cpref/html/frlrfSystemWindowsFormsProgressBarClassTopic. asp
(For details, refer to MSDN)
4. Design Principles
1. SERVER: accept connection module and accept information module
When a server program is started, a thread is started to listen to the connection signal. If the thread that receives the connection signal is started immediately, two threads are running, the listening connection signal determines whether to start or stop the thread that receives information based on the client information.
2. Client: Send connection request module and send information module