MCPcopy Create free account
hub / github.com/defold/defold / socket_create

Function socket_create

engine/script/src/luasocket/wsocket.c:113–117  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

111* Creates and sets up a socket
112\*-------------------------------------------------------------------------*/
113int socket_create(p_socket ps, int domain, int type, int protocol) {
114 *ps = socket(domain, type, protocol);
115 if (*ps != SOCKET_INVALID) return IO_DONE;
116 else return WSAGetLastError();
117}
118
119/*-------------------------------------------------------------------------*\
120* Connects or returns error message

Callers 5

tryconnect6Function · 0.70
global_createFunction · 0.70
inet_trycreateFunction · 0.70
inet_tryconnectFunction · 0.70
inet_trybindFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected