Skip to content

Commit

Permalink
added documentation for host:get_socket_address()
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfelis committed Jul 8, 2013
1 parent da71331 commit 12edeed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ stores all peers in an array of the corresponding host and re-uses unused
peers for new connections. You can query the state of a peer using
[peer:state](#peerstate).

### `host:get_socket_address()`

Returns a string that describes the socket address of the given host. The
string is formatted as "a.b.c.d:port", where "a.b.c.d" is the ip address of
the used socket.

### `peer:connect_id()`

Returns the field ENetPeer::connectID that is assigned for each
Expand Down

0 comments on commit 12edeed

Please sign in to comment.