MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_socket_end

Function acl_socket_end

lib_acl/src/stdlib/sys/acl_sys_socket.c:125–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125int acl_socket_end(void)
126{
127 const char *myname = "acl_socket_end";
128
129 if (__socket_ended) {
130 acl_msg_warn("%s(%d): has been ended", myname, __LINE__);
131 return 0;
132 }
133 __socket_ended = 1;
134
135 if (WSACleanup() == SOCKET_ERROR) {
136 acl_msg_error("%s(%d): WSACleanup error(%s)",
137 myname, __LINE__, acl_last_serror());
138 return -1;
139 }
140
141 __socket_inited = 0;
142 return 0;
143}
144
145int acl_socket_close(ACL_SOCKET fd)
146{

Callers 2

acl_lib_endFunction · 0.85
mainFunction · 0.85

Calls 3

acl_msg_warnFunction · 0.85
acl_msg_errorFunction · 0.85
acl_last_serrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…