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

Function socket_open

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

-------------------------------------------------------------------------*\ * Initializes module \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

79* Initializes module
80\*-------------------------------------------------------------------------*/
81int socket_open(void) {
82 /* installs a handler to ignore sigpipe or it will crash us */
83 signal(SIGPIPE, SIG_IGN);
84 return 1;
85}
86
87/*-------------------------------------------------------------------------*\
88* Close module

Callers 1

base_openFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected