| 355 |
|
* Set the timeout for the fd |
| 356 |
|
*/ |
| 357 |
|
void |
| 358 |
< |
comm_settimeout(fde_t *fd, time_t timeout, void (*callback)(fde_t *, void *), void *cbdata) |
| 358 |
> |
comm_settimeout(fde_t *fd, uintmax_t timeout, void (*callback)(fde_t *, void *), void *cbdata) |
| 359 |
|
{ |
| 360 |
|
assert(fd->flags.open); |
| 361 |
|
|
| 377 |
|
* comm_close() is replaced with fd_close() in fdlist.c |
| 378 |
|
*/ |
| 379 |
|
void |
| 380 |
< |
comm_setflush(fde_t *fd, time_t timeout, void (*callback)(fde_t *, void *), void *cbdata) |
| 380 |
> |
comm_setflush(fde_t *fd, uintmax_t timeout, void (*callback)(fde_t *, void *), void *cbdata) |
| 381 |
|
{ |
| 382 |
|
assert(fd->flags.open); |
| 383 |
|
|
| 446 |
|
void |
| 447 |
|
comm_connect_tcp(fde_t *fd, const char *host, unsigned short port, struct sockaddr *clocal, |
| 448 |
|
int socklen, void (*callback)(fde_t *, int, void *), void *data, |
| 449 |
< |
int aftype, time_t timeout) |
| 449 |
> |
int aftype, uintmax_t timeout) |
| 450 |
|
{ |
| 451 |
|
struct addrinfo hints, *res; |
| 452 |
|
char portname[PORTNAMELEN + 1]; |