Player.port

Gets the player's connection informations.

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

Examples

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

Meta