PDA

View Full Version : 2 - Questions regarding Clients & Servers (TCP/SOCK_STRE


Loco
07-27-2002, 01:54 AM
2 - Questions regarding both Clients and Servers (TCP/SOCK_STREAM)

How can I tell when a socket is closed on the other end? (http://www.developerweb.net/forum/showthread.php?t=2935)
What's with the second parameter in bind()? (http://www.developerweb.net/forum/showthread.php?t=2936)
How do I get the port number for a given service? (http://www.developerweb.net/forum/showthread.php?t=2937)
If bind() fails, what should I do with the socket descriptor? (http://www.developerweb.net/forum/showthread.php?t=2938)
How do I properly close a socket? (http://www.developerweb.net/forum/showthread.php?t=2939)
When should I use shutdown()? (http://www.developerweb.net/forum/showthread.php?t=2940)
Please explain the TIME_WAIT state. (http://www.developerweb.net/forum/showthread.php?t=2941)
Why does it take so long to detect that the peer died? (http://www.developerweb.net/forum/showthread.php?t=2942)
What are the pros/cons of select(), non-blocking I/O and SIGIO? (http://www.developerweb.net/forum/showthread.php?t=2943)
Why do I get EPROTO from read()? (http://www.developerweb.net/forum/showthread.php?t=2944)
How can I force a socket to send the data in its buffer? (http://www.developerweb.net/forum/showthread.php?t=2945)
Where can I get a library for programming sockets? (http://www.developerweb.net/forum/showthread.php?t=2946)
How come select says there is data, but read returns zero? (http://www.developerweb.net/forum/showthread.php?t=2947)
Whats the difference between select() and poll()? (http://www.developerweb.net/forum/showthread.php?t=2948)
How do I send [this] over a socket? (http://www.developerweb.net/forum/showthread.php?t=2949)
How do I use TCP_NODELAY? (http://www.developerweb.net/forum/showthread.php?t=2950)
What exactly does the Nagle algorithm do? (http://www.developerweb.net/forum/showthread.php?t=2951)
What is the difference between read() and recv()? (http://www.developerweb.net/forum/showthread.php?t=2952)
I see that send()/write() can generate SIGPIPE. Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? (http://www.developerweb.net/forum/showthread.php?t=2953)
After the chroot(), calls to socket() are failing. Why? (http://www.developerweb.net/forum/showthread.php?t=2954)
Why do I keep getting EINTR from the socket calls? (http://www.developerweb.net/forum/showthread.php?t=2955)
When will my application receive SIGPIPE? (http://www.developerweb.net/forum/showthread.php?t=2956)
What are socket exceptions? What is out-of-band data? (http://www.developerweb.net/forum/showthread.php?t=2957)
How can I find the full hostname (FQDN) of the system I'm running on? (http://www.developerweb.net/forum/showthread.php?t=2958)
How do I monitor the activity of sockets? (http://www.developerweb.net/forum/showthread.php?t=2959)