Source

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

Diff from to

examples/unix-domain-listener-client.php

 		$this->bev = new EventBufferEvent($base, NULL, EventBufferEvent::OPT_CLOSE_ON_FREE,
 			array ($this, "read_cb"), NULL, array ($this, "event_cb"));
 
-		if (!$this->bev->connectUnix($sock_path)) {
+		if (!$this->bev->connect("unix:$sock_path")) {
 			trigger_error("Failed to connect to socket `$sock_path'", E_USER_ERROR);
 		}