Przeglądaj źródła

added documentation for host:get_socket_address()

fysx 12 lat temu
rodzic
commit
12edeed034
1 zmienionych plików z 6 dodań i 0 usunięć
  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