public function create($domain, $type, $protocol)
    {
        $this->socket = socket_create($domain, $type, $protocol);
        if (!$this->socket) {
            throw new \Exception('Could not create socket');
        }
    }