FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSystem_ConstructServerSystem ( kSystem system,
kSvNode serverNode,
kAlloc  allocator 
)

Constructs a kSystem object and adds a server node that is bound to the hardware platform singleton node.

This constructor can be used by node-server applications to simplify the processs of constructing and configuring a system object that is suited to hosting a server object that is bound to the underlying hardware platform singleton node. Specifically, this method ensures that the discovery port used by kSystem to discover other sensors matches the discovery port that the server node has been configured to use.

This method is provided for the sake of convenience; if customization is required, the implementation of this method can be copied into user applications and tailored to suit the circumstances.

This methods starts discovery clients and refreshes the system object before returning.

Parameters
systemDestination for the constructed system object handle (must be destroyed by caller).
serverNodeDestination for the constructed server object handle (owned by system; not destroyed by caller).
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.