Parsec

ParsecHostAddCandidate

voidParsecHostAddCandidate(Parsec *
ps,
const char *
attemptID,
const char *
ip,
uint16_t
port,
bool
lan,
bool
fromStun,
bool
sync
)

Give a possible candidate to connect to.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
inattemptIDThe attempt ID that's assigned to this connection.
inipThe IP address to connect to.
inportThe port to connect to.
inlanIf the client is on the LAN network.
infromStunIf this candidate came from the STUN results.
insyncThe nat sync state.