ParsecClientConnect

ps,
cfg,
char *
sessionID,
char *
peerID
)

Connect to a remote Parsec host.

Performs authentication, peer-to-peer negotiation, and NAT traversal.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
incfgClient configuration. May be left NULL to use PARSEC_CLIENT_DEFAULTS.
insessionIDSession ID obtained via the Parsec API.
inpeerIDRemote host Peer ID obtained via the Parsec API.

Returns

PARSEC_OK on successful connection, otherwise a ParsecStatus error value.