Host.connect

Initiates a connection to a foreign host

  1. Peer connect(Address foreignAddress, size_t channelCount, uint data)
    class Host
    connect
  2. Peer connect(string hostName, ushort port, size_t channelCount, uint data)

Parameters

foreignAddress Address

Destination for the connection

channelCount size_t

Number of channels to allocate

data uint

User data supplied to the receiving host

Throws

ENetException if enet_host_connect fails

Meta