ServerList.h

Go to the documentation of this file.
00001 //**************************************************************************/
00002 // Copyright (c) 1998-2008 Autodesk, Inc.
00003 // All rights reserved.
00004 // 
00005 // These coded instructions, statements, and computer programs contain
00006 // unpublished proprietary information written by Autodesk, Inc., and are
00007 // protected by Federal copyright law. They may not be disclosed to third
00008 // parties or copied or duplicated in any form, in whole or in part, without
00009 // the prior written consent of Autodesk, Inc.
00010 //**************************************************************************/
00011 #pragma once
00012 
00013 #include <WTypes.h>
00014 #include "..\maxheap.h"
00015 #include "..\maxnet_types.h"
00016 #include "ServerInfo.h"
00017 
00018 
00019 #define SERVER_STATE_ABSENT    0
00020 #define SERVER_STATE_IDLE      1
00021 #define SERVER_STATE_BUSY      2
00022 #define SERVER_STATE_ERROR     3
00023 #define SERVER_STATE_SUSPENDED 4
00024 
00035 struct ServerList : public MaxHeapOperators
00036 {
00038     HSERVER     hServer;
00050     WORD        state;
00052     ServerInfo  info;
00053     //-- Current Task
00055     HJOB        hJob;           //-- It will be 0 if no current task is defined
00057     int     frame;          //-- It will be NO_FRAME if loading job (no frames yet assigned)
00059     SYSTEMTIME  frame_started;
00060 };