protected function writeAndReadSocket($buffer)
    {
        $this->writeSocket($buffer . self::SOCKET_MSG_ENDL);

        $read = $this->readSocket();

        return $read;
    }
protected function writeAndReadSocket($buffer)
    {
        $this->writeSocket($buffer . self::SOCKET_MSG_ENDL);

        $read = $this->readSocket();

        return $read;
    }
protected function writeAndReadSocket ( $ buffer ) { $ this -> writeSocket ( $ buffer . self :: SOCKET_MSG_ENDL ) ; $ read = $ this -> readSocket ( ) ; return $ read ; }
Write data to socket and read

@param string $buffer
@return bool|string
Write data to socket and read