正在加载图片...
Activities of a server 1. Initializes itself 2. Starts listening for clients 3. Handles the following types of Initializing events originating from clients For the server as a whole 1. accepts connections aiting 2. responds to messages start/istening stop listening 3. handles client disconnection aiting for connections 4. May stop accept conne ction listening For each connection han dle Must cleanly terminate O Hand ing a Connection disconnection do: react to messages term inate www.oseng.com O Lethbridge/Laganiere 2001 Chap 3: Basing Development on Reusable 16© Lethbridge/Laganière 2001 Chap. 3: Basing Development on Reusable Technology 16 Activities of a server 1. Initializes itself 2. Starts listening for clients 3. Handles the following types of events originating from clients 1. accepts connections 2. responds to messages 3. handles client disconnection 4. May stop listening 1. Must cleanly terminate Waiting for Connections Handling a Connection do: react to messages handle disconnection Waiting start listening stop listening For each connection: For the server as a whole: accept connection Initializing term inate
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有