Structure ServerList

3DS Max Plug-In SDK

Structure ServerList

See Also: Class MaxNetManager, Structure HSERVER, Structure ServerInfo

Description:

This structure is available in release 4.0 and later only.

This structure is used by the Network Rendering API to store global server state information.

If hJob is a valid handle (i.e. non 0) and frame holds a NO_FRAME, this means this server has just be assigned a job or it is in between frames (no frames assigned). Most likely it is loading 3ds max. The transition in between frames is in the nanosecond level, but seeing as it is possible, it cannot be discarded.

 

typedef struct {

HSERVER hServer;

The handle to the server.

HJOB hJob;

The handle to the job that the server is currently working on, if there is one.

int frame;

The frame the server is currently rendering, if there is one.

SYSTEMTIME frame_started;

The time the server had the frame assigned.

WORD state;

The current state of the server which is one of the following values:

SERVER_STATE_ABSENT

The server is absent.

SERVER_STATE_IDLE

The server is idle.

SERVER_STATE_BUSY

The server is busy.

SERVER_STATE_ERROR

The server is experiencing an error.

SERVER_STATE_SUSPENDED

The server has been suspended..

ServerInfo info;

The server information structure containing the server details.

} ServerList;