vp_create

From Virtual Paradise Wiki
Revision as of 19:18, 1 August 2018 by Sleepy E (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Method call snippet vp_create(net_config);

Creates a new SDK instance in memory for connecting to a universe and world.

Parameters

These are the parameters that this method requires:

Parameter Usage
vp_net_config*
net_config
Network configuration for the instance or NULL to use the default select-based implementation. The contents of the structure will be copied.

Returns

A pointer to the newly created instance, or NULL if something went wrong whilst trying to create one.

Behavior

There is no special behavior for this method

Examples

VPInstance instance;

instance = vp_create(NULL);
if (!instance)
  printf("Unable to create instance\n");

See also