MCPcopy Create free account
hub / github.com/dermesser/libsocket / deconnect

Method deconnect

C++/inetclientdgram.cpp:216–225  ·  view source on GitHub ↗

* @brief Break association to host. Does not close the socket. * * *Should actually be called 'disconnect'* * */

Source from the content-addressed store, hash-verified

214 *
215 */
216void 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

Callers 1

mainFunction · 0.45

Calls 2

socket_exceptionClass · 0.85

Tested by

no test coverage detected