Player.address

Gets the player's connection informations.

  1. Address address [@property getter]
    class Player
    final pure nothrow @property @trusted @nogc
    Address
    address
    ()
  2. string ip [@property getter]
  3. ushort port [@property getter]

Examples

assert(player.address.toAddrString() == player.ip);
assert(player.address.toPortString() == player.port.to!string);

Meta