Vp connect universe
<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>