Vp connect universe

From Virtual Paradise Wiki
Revision as of 15:05, 17 June 2012 by Oliver (talk | contribs) (Created page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<C>int vp_connect_universe(VPInstance instance, char* host, int port)</C>

Description

Connects to a universe server.

Callback

None

Notes

None

Arguments

instance
The SDK instance with which to connect.
host
Host address of the server to which the SDK should connect.
port
TCP port of the remove server.

Argument attributes

None

Return values

VP_RC_SUCCESS
VP_RC_NOT_INITIALIZED
VP_RC_CONNECTION_ERROR
There was an error connecting to the server.

Returned attributes

None

Example

<C>int rc; if(rc = vp_connect_universe(instance, "universe.virtualparadise.org", 57000))

   printf("Error connecting to universe (reason %d)\n", rc);</C>

See also