Structure JobServer

3DS Max Plug-In SDK

Structure JobServer

See Also: Class MaxNetManager, Structure HSERVER

Description:

This structure is available in release 4.0 and later only.

This structure is used by the Network Rendering API to store information about the servers in the job queue.

typedef struct {

HSERVER hServer;

The handle to the server.

char status;

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

JOB_SRV_IDLE

The server is idle.

JOB_SRV_BUSY

The server is busy.

JOB_SRV_FAILED

The server is has failed (rendering error).

JOB_SRV_ABSENT

The server is absent.

JOB_SRV_SUSPENDED

The server is suspended, out of work schedule.

JOB_SRV_BUSYOTHER

The server is busy with another job.

JOB_SRV_ERROR

The server experienced a connection error.

JOB_SRV_COOL_OFF

The server is "cooling off" (i.e. in error recovery).

bool failed;

This variable is used internally.

bool active;

Indicates that the server is active in the job.

int cur_frame;

The frame which is currently being rendered.

float thours;

The total hours the server has spent rendering.

int frames;

The total number of frames the server has rendered.

} JobServer;