Source

pecl-event / examples / unix-domain-listener.php

Diff from to

File examples/unix-domain-listener.php

 
  		$this->listener = new EventListener($this->base,
  			array($this, "acceptConnCallback"), $this->base,
- 			EventListener::OPT_CLOSE_ON_FREE | EventListener::OPT_REUSEABLE,-1,
- 			$sock_path, EventUtil::AF_UNIX);
+ 			EventListener::OPT_CLOSE_ON_FREE | EventListener::OPT_REUSEABLE, -1,
+ 			"unix:$sock_path");
 
 		if (!$this->listener) {
 			trigger_error("Couldn't create listener", E_USER_ERROR);