Exemple #1
0
 private function getProtocol()
 {
     $socket = new Socket('localhost', 27017);
     $socket->connect();
     $proto = new Protocol($socket);
     return $proto;
 }
Exemple #2
0
 private function getProtocol()
 {
     $socket = new Socket(static::$host, static::$port);
     $socket->connect();
     $proto = new Protocol($socket);
     return $proto;
 }