MCPcopy Create free account
hub / github.com/apache/thrift / socket_create

Function socket_create

lib/lua/src/usocket.c:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96// General
97
98T_ERRCODE socket_create(p_socket sock, int domain, int type, int protocol) {
99 *sock = socket(domain, type, protocol);
100 if (*sock > 0) {
101 return SUCCESS;
102 } else {
103 return errno;
104 }
105}
106
107T_ERRCODE socket_destroy(p_socket sock) {
108 // TODO Figure out if I should be free-ing this

Callers 2

tcp_createFunction · 0.85
tcp_create_and_connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected