Commit f900854e authored by Evelyn's avatar Evelyn Committed by GitHub

Update mg_socketpair.md

parent d20e94f7
...@@ -6,7 +6,7 @@ signature: | ...@@ -6,7 +6,7 @@ signature: |
int mg_socketpair(sock_t[2], int sock_type); int mg_socketpair(sock_t[2], int sock_type);
--- ---
Create a socket pair. Creates a socket pair.
`sock_type` can be either `SOCK_STREAM` or `SOCK_DGRAM`. `sock_type` can be either `SOCK_STREAM` or `SOCK_DGRAM`.
Return 0 on failure, 1 on success. Returns 0 on failure and 1 on success.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment