MSG_CONNECT_ENDPOINTS
msg.what = MSG_CONNECT_ENDPOINTS;
case MSG_CONNECT_ENDPOINTS:
bool mustConnect = msg->what == MSG_CONNECT_ENDPOINTS;