* @brief Break association to host. Does not close the socket. * * *Should actually be called 'disconnect'* * */
| 214 | * |
| 215 | */ |
| 216 | void inet_dgram_client::deconnect(void) { |
| 217 | if (-1 == (connect_inet_dgram_socket(sfd, NULL, NULL))) |
| 218 | throw socket_exception( |
| 219 | __FILE__, __LINE__, |
| 220 | "inet_dgram_client::deconnect() - Could not disconnect!"); |
| 221 | |
| 222 | connected = false; |
| 223 | host.clear(); |
| 224 | port.clear(); |
| 225 | } |
| 226 | } // namespace libsocket |
no test coverage detected