• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Multiclient Server

The server-side changes are a bit deeper. Instead of the previous single-user solution, we need to create and track an entire list of client sockets. The way this works is not terribly different than what we did before, except that we do it repeatedly.

We need to establish a publicly known port to which we bind a listening socket. We listen for connection requests. Clients that request connections are each given an individual dedicated connection socket, and these are stacked in the server (Figure 20.3).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint