public function createListener($port, $host = '127.0.0.1') { $tmplistener = new SimpleSocket($host, $port, 5); return $tmplistener; }