bool Dispatcher::sendCtrlMsg(const IpAddress& to, const void *buf, int len) { Proxy *proxy = Proxy::instance(); if (proxy == 0) { return ctrl_sock->write(to, CTRL_PORT, buf, len); } else { return proxy->udpCtrl(to, buf, len); } } /* Dispatcher::sendCtrlMsg */