Esempio n. 1
0
 public function acceptConnection()
 {
     if ($client = @socket_accept($this->socket)) {
         socket_getpeername($client, $ip);
         $host = $this->dns_timeout($ip);
         $client = new IRCClient($host, $ip, $client, $this);
         $client->send("NOTICE AUTH :*** Found your hostname." . "\r\n");
         $this->clients[] = $client;
     }
 }