Beej's Guide to Network Programming Using Internet Sockets
Beej's Guide to Network Programming Using Internet Sockets
Beej's Guide to Network Programming Using Internet Sockets
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Beej’s <strong>Guide</strong> <strong>to</strong> <strong>Network</strong> <strong>Programming</strong> <strong>Using</strong> <strong>Internet</strong> <strong>Sockets</strong> 42listen(s, 10); // set s up <strong>to</strong> be a server (listening) socketfor(;;) {s2 = accept(s, &remoteaddr, &remoteaddr_len);}// now you can send() and recv() with the// connected client via socket s2See Alsosocket(), listen(), struct sockaddr_in