Vp connect universe: Difference between revisions
Jump to navigation
Jump to search
Created page. |
+cat Category: SDK |
||
Line 34: | Line 34: | ||
* [[vp_destroy]] | * [[vp_destroy]] | ||
* [[vp_login]] | * [[vp_login]] | ||
[[Category: SDK]] |
Revision as of 20:13, 29 July 2012
<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>