Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7612af9

Browse files
committed
Bind method
1 parent c411a97 commit 7612af9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎Server.php‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,15 @@ public function setOption() {
4949

5050
}
5151

52+
public function bind() {
53+
54+
55+
if (!socket_bind($this->server, $this->address, $this->port)) {
56+
throw new Exception('Failed to bind');
57+
}
58+
59+
return $this;
60+
61+
}
62+
5263
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /