| 144 | } |
| 145 | |
| 146 | bool 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 | |
| 159 | socket_stream* server_socket::accept(int timeout /* = 0 */, |
| 160 | bool* etimed /* = NULL */) |
nothing calls this directly
no test coverage detected