Hello World Tcp Server Using Sockets (2)
|
|
|
||||||||||||
Description: In this video we continue coding our "Hello World" server. We will now encounter the most important API call - accept() ( from a server's perspective ). Accept() allows the server process to accept client connections and process them. We will currently run the server in an infinite loop, so that we can process clients one after the other. The important thing to note here that this server process is not multithreaded and thus can only process a single client at a time. To be able to process multiple clients asynchronous calls such as select() or multithreading will have to be used. Links:
1. Beej's Socket Programming guide
2. Client Server programming using sockets
3. Unix Network Programming
4. Raw Socket programming basics
Comments (1)
|
jmcboots on Fri 29 Apr 2011 Hello, I am very new to programming. I follow along and all works, but only after I get rid of the printing of the client addr. |







