ParsecHostNewAttempt
boolParsecHostNewAttempt(Parsec *ps,const char *attemptID,ParsecProtocolproto,const ParsecCredentials *creds,const ParsecPermissions *perms,const char *name,uint32_tuserID,boolowner)
Start a new NAT attempt.
Parameters
Direction | Name | Description |
---|---|---|
in | ps | Parsec instance returned by ParsecInit . |
in | attemptID | The attempt ID that's assigned to this connection. |
in | proto | The ParsecProtocol type, use PROTO_MODE_BUD if possible. |
in | creds | The ParsecCredentials for the STUN phase. |
in | perms | Guest input permissions, in general coming from the signal service. |
in | name | The connection name. |
in | userID | The user id. |
in | owner | If the person connecting is the owner of the host. |
Returns
true
on success, false
otherwise.