Client.this

Creates a new Client, a subclass of Host

This constructor sets peerCount to 1, meaning it can only connect to a singular Peer.

  1. this(ENet enet, size_t peerCount, size_t channelLimit, uint incomingBandwidth, uint outgoingBandwidth)
  2. this(ENet enet, size_t channelLimit, uint[2] bandwidthLimits)
    class Client
    this
    (,,
    uint[2] bandwidthLimits = [0, 0]
    )

Parameters

channelLimit size_t

The maximum number of channels allowed; if 0, then this is equivalent to ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT

bandwidthLimits uint[2]

downstream and upstream bandwidth of the host in bytes/second; if 0, ENet will assume unlimited bandwidth

Throws

ENetException if enet_create_host fails

Meta