Host.this

Creates a new Host

class Host
this

Parameters

address Address*

The address at which other peers may connect to this host; if null, then no peers may connect to the host

peerCount size_t

The maximum number of peers that should be allocated for the host

channelLimit size_t

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

incomingBandwidth uint

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

outgoingBandwidth uint

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

Throws

ENetException if enet_create_host fails

Meta