正在加载图片...
3)Concurrent, Connectionless Server Algorithm Master 1 Create a socket and bind to the well-known address for the service being offered. Leave the socket unconnected Master 2. Repeatedly call recifromto receive the next request from a client, and create a new slave thread to handle the response Slave 1 Receive a specific request upon creation as well as access to the socket Slave 2. Form a reply according to the application protocol and send it back to the client using sendto Slave 3 Exit (i.e, a slave thread terminates after handling one request) It is an uncommon type in which the server creates a new thread to handle each request 1414 (3) Concurrent, Connectionless Server Algorithm • Master 1. Create a socket and bind to the well-known address for the service being offered. Leave the socket unconnected. • Master 2. Repeatedly call recvfromto receive the next request from a client, and create a new slave thread to handle the response. • Slave 1. Receive a specific request upon creation as well as access to the socket. • Slave 2. Form a reply according to the application protocol and send it back to the client using sendto. • Slave 3. Exit (i.e., a slave thread terminates after handling one request). It is an uncommon type in which the server creates a new thread to handle each request
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有