Skip to content

Commit

Permalink
Describing how to change the host the socket is listening on.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgoettschkes committed Apr 26, 2013
1 parent 04101e2 commit e08ffb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Here is a server that closes the connection if you send it anything.
$socket->listen(1337);

$loop->run();

You can change the host the socket is listening on through a second parameter
provided to the listen method:

$socket->listen(1337, '192.168.0.1');

Here's a client that outputs the output of said server and then attempts to
send it a string.
Expand Down

0 comments on commit e08ffb9

Please sign in to comment.