protected function writeToSocket($socket, $message)
    {
        socket_sendto($socket, $message, strlen($message), 0, PAPERTRAIL_HOST, PAPERTRAIL_PORT);
    }
protected function writeToSocket($socket, $message)
    {
        socket_sendto($socket, $message, strlen($message), 0, PAPERTRAIL_HOST, PAPERTRAIL_PORT);
    }
protected function writeToSocket ( $ socket , $ message ) { socket_sendto ( $ socket , $ message , strlen ( $ message ) , 0 , PAPERTRAIL_HOST , PAPERTRAIL_PORT ) ; }
Writes to the socket

@param resource $socket Socket
@param string $message Message
Writes to the socket