public function sendMessage($message, $server, $port, $flags = 0)
    {
        $send = socket_sendto($this->socket, $message, strlen($message), $flags, $server, $port);
        if ($send === false) {
            throw new \RuntimeException('Message could not be sent');
        }

        return $send;
    }