Parsec

ParsecHostNewAttempt

boolParsecHostNewAttempt(Parsec *
ps,
const char *
attemptID,
ParsecProtocol
proto,
const ParsecCredentials *
creds,
const ParsecPermissions *
perms,
const char *
name,
uint32_t
userID,
bool
owner
)

Start a new NAT attempt.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
inattemptIDThe attempt ID that's assigned to this connection.
inprotoThe ParsecProtocol type, use PROTO_MODE_BUD if possible.
incredsThe ParsecCredentials for the STUN phase.
inpermsGuest input permissions, in general coming from the signal service.
innameThe connection name.
inuserIDThe user id.
inownerIf the person connecting is the owner of the host.

Returns

true on success, false otherwise.