wxConnection::OnDisconnect

Bool OnDisconnect(void)

Message sent to the client or server application when the other application notifies it to delete the connection. Default behaviour is to delete the connection object.