mongoose/docs/c-api/mg_net.h/mg_socketpair.md
Dmitry Frank 3eb4eb8074 Fix mongoose docs generation
PUBLISHED_FROM=331821dcd1f7dc8a94581cd8a9b51aa00a89fddc
2018-02-03 01:20:48 +02:00

13 lines
262 B
Markdown

---
title: "mg_socketpair()"
decl_name: "mg_socketpair"
symbol_kind: "func"
signature: |
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.