Why do I keep getting EINTR from the socket calls?
Answer / chaitanya
This isn't really so much an error as an exit condition. It means that the call was interrupted by a signal. Any call that might block should be wrapped in a loop that checkes for EINTR, as is done in the example code .
| Is This Answer Correct ? | 0 Yes | 0 No |
Why does connect() succeed even before my server did an accept()?
Why sockets are used?
How do I get my server to find out the clients address / host- name?
Why do I get connection refused when the server is not running?
What is active unix domain sockets?
Can multiple clients connect to same socket?
How should I choose a port number for my server?
How can I listen on more than one port at a time?
How are unix domain sockets implemented?
What is socket address with example?
What exactly is a socket?
How can my client work through a firewall/proxy server?