| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Only sleep after failed try_connect(), because it might fail quickly.
The read should be blocking for 1s (SO_RCVTIMEO).
|
|
|
|
|
| |
Writes are blocking -- send_message() will simply get all the bytes
out.
|
| |
|
| |
|
| |
|
|
|
|
| |
There's no need for a variable for the current time at this point.
|
|
|
|
| |
Avoiding the unnecessary complexity of non-blocking I/O.
|
|
|
|
|
|
|
|
| |
POSIX says:
"In each pollfd structure, poll() shall clear the revents member,
except that where the application requested a report on a condition by
setting one of the bits of events listed above, poll() shall set the
corresponding bit in revents if the requested condition is true."
|
|
|
|
| |
Also, do name variables slightly better.
|
| |
|
| |
|
| |
|
|
|