Player.port

Gets the player's connection informations.

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