mirror of https://github.com/yandex/odyssey.git
machinarium: implement machine_accept_timedout()
This commit is contained in:
parent
c435fc3640
commit
c630877d90
|
@ -164,6 +164,9 @@ machine_bind(machine_io_t, struct sockaddr*);
|
|||
MACHINE_API int
|
||||
machine_accept(machine_io_t, machine_io_t*, int backlog, uint64_t time_ms);
|
||||
|
||||
MACHINE_API int
|
||||
machine_accept_timedout(machine_io_t);
|
||||
|
||||
MACHINE_API int
|
||||
machine_read(machine_io_t, char *buf, int size, uint64_t time_ms);
|
||||
|
||||
|
|
|
@ -164,3 +164,10 @@ machine_accept(machine_io_t obj, machine_io_t *client, int backlog, uint64_t tim
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
MACHINE_API int
|
||||
machine_accept_timedout(machine_io_t obj)
|
||||
{
|
||||
mm_io_t *io = obj;
|
||||
return io->accept_timedout;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue