mirror of https://github.com/yandex/odyssey.git
20 lines
306 B
C
20 lines
306 B
C
|
|
||
|
/*
|
||
|
* machinarium.
|
||
|
*
|
||
|
* Cooperative multitasking engine.
|
||
|
*/
|
||
|
|
||
|
#include <machinarium_private.h>
|
||
|
#include <machinarium.h>
|
||
|
|
||
|
MM_API int
|
||
|
mm_getsockname(mm_io_t iop, struct sockaddr *sa, int *salen)
|
||
|
{
|
||
|
mmio *io = iop;
|
||
|
int rc = uv_tcp_getsockname(&io->handle, sa, salen);
|
||
|
if (rc < 0)
|
||
|
return rc;
|
||
|
return 0;
|
||
|
}
|