MCPcopy Create free account
hub / github.com/Tencent/UnLua / socket_create

Function socket_create

Plugins/UnLuaExtensions/LuaSocket/Source/src/usocket.cpp:124–128  ·  view source on GitHub ↗

-------------------------------------------------------------------------*\ * Creates and sets up a socket \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

122* Creates and sets up a socket
123\*-------------------------------------------------------------------------*/
124int socket_create(p_socket ps, int domain, int type, int protocol) {
125 *ps = socket(domain, type, protocol);
126 if (*ps != SOCKET_INVALID) return IO_DONE;
127 else return errno;
128}
129
130/*-------------------------------------------------------------------------*\
131* Binds or returns error message

Callers 3

inet_trycreateFunction · 0.70
global_createFunction · 0.70
global_createFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected