Sun Java System Web Server 7.0 Update 1 NSAPI Developer's Guide

vs_alloc_slot() Function

The vs_alloc_slot function allocates a new slot for storing a pointer to data specific to a certain VirtualServer*. The returned slot number can be used in subsequent vs_set_data and vs_get_data calls. The returned slot number is valid for any VirtualServer*.

The value of the pointer, which may be returned by a call to vs_set_data, defaults to NULL for every VirtualServer*.

Syntax

int vs_alloc_slot(void);

Return Values

A slot number if the function succeeds, or -1 if fails.

See Also

vs_get_data() Function, vs_set_data() Function