ParsecClientConnect

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

Begin connecting to a remote Parsec host.

Performs authentication, peer-to-peer negotiation, and NAT traversal. This function operates asynchronously and will return immediately. Call ParsecClientGetStatus to determine if the client has successfully connected or is in an error state.

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 if the connection attempt is underway, PARSEC_ALREADY_RUNNING if there is an active connection.

Parsec SDK on GitHubDiscuss on Discord

You are prepared.

Create an account now for free.

Sign Up
Parsec© 2020
Made with ❤️ in NYC