Parsec

ParsecHostBeginP2P

ParsecStatusParsecHostBeginP2P(Parsec *
ps,
const char *
attemptID,
uint16_t
port,
ParsecCredentials *
creds
)

Allow or reject a pending guest. HOST_DESKTOP only.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
inattemptIDThe attempt ID that's assigned to this connection.
inportThe host port.
incredsThe ParsecCredentials for the STUN phase.

Returns

PARSEC_OK on success or PARSEC_NOT_RUNNING if the host has not been started.