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

Method close

lib_acl_cpp/src/stream/server_socket.cpp:146–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146bool server_socket::close()
147{
148 if (fd_local_ == ACL_SOCKET_INVALID) {
149 return true;
150 }
151
152 bool ret = acl_socket_close(fd_local_) == 0 ? true : false;
153 fd_ = ACL_SOCKET_INVALID;
154 fd_local_ = ACL_SOCKET_INVALID;
155 addr_.clear();
156 return ret;
157}
158
159socket_stream* server_socket::accept(int timeout /* = 0 */,
160 bool* etimed /* = NULL */)

Callers

nothing calls this directly

Calls 2

acl_socket_closeFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected