2
0
Эх сурвалжийг харах

added documentation for host:get_socket_address()

fysx 12 жил өмнө
parent
commit
12edeed034
1 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  1. 6 0
      docs/index.md

+ 6 - 0
docs/index.md

@@ -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