Close the socket.
| 70 | |
| 71 | /// Close the socket. |
| 72 | void |
| 73 | close() |
| 74 | { |
| 75 | if (_sock > 0) { |
| 76 | ::close(_sock); |
| 77 | _sock = -1; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | /// Test if the socket was closed or it wasn't initialized. |
| 82 | bool |
no outgoing calls
no test coverage detected