mongoose/docs/c-api/net.h/mg_socketpair.md
2016-07-22 14:54:30 +01:00

262 B

title decl_name symbol_kind signature
mg_socketpair() mg_socketpair func int mg_socketpair(sock_t[2], int sock_type);

Creates a socket pair. sock_type can be either SOCK_STREAM or SOCK_DGRAM. Returns 0 on failure and 1 on success.