mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-05 10:58:59 +08:00
13 lines
257 B
Markdown
13 lines
257 B
Markdown
|
---
|
||
|
title: "mg_socketpair()"
|
||
|
decl_name: "mg_socketpair"
|
||
|
symbol_kind: "func"
|
||
|
signature: |
|
||
|
int mg_socketpair(sock_t[2], int sock_type);
|
||
|
---
|
||
|
|
||
|
Create a socket pair.
|
||
|
`sock_type` can be either `SOCK_STREAM` or `SOCK_DGRAM`.
|
||
|
Return 0 on failure, 1 on success.
|
||
|
|