maxnet_types.h

Go to the documentation of this file.
00001 //
00002 // Copyright 2010 Autodesk, Inc.  All rights reserved.
00003 //
00004 // Use of this software is subject to the terms of the Autodesk license
00005 // agreement provided at the time of installation or download, or which
00006 // otherwise accompanies this software in either electronic or hard copy form.  
00007 //
00008 //
00009 #pragma once
00010 
00011 #include <WTypes.h>
00012 #include "MaxHeap.h"
00013 
00015 enum maxnet_error_t
00016 {
00017     MAXNET_ERR_NONE = 0,            
00018     MAXNET_ERR_CANCEL,              
00019     MAXNET_ERR_NOMEMORY,            
00020     MAXNET_ERR_FILEIO,              
00021     MAXNET_ERR_BADARGUMENT,         
00022     MAXNET_ERR_NOTCONNECTED,        
00023     MAXNET_ERR_NOTREADY,            
00024     MAXNET_ERR_IOERROR,             
00025     MAXNET_ERR_CMDERROR,            
00026     MAXNET_ERR_HOSTNOTFOUND,        
00027     MAXNET_ERR_BADSOCKETVERSION,    
00028     MAXNET_ERR_WOULDBLOCK,          
00029     MAXNET_ERR_SOCKETLIMIT,         
00030     MAXNET_ERR_CONNECTIONREFUSED,   
00031     MAXNET_ERR_ACCESSDENIED,        
00032     MAXNET_ERR_TIMEOUT,             
00033     MAXNET_ERR_BADADDRESS,          
00034     MAXNET_ERR_HOSTUNREACH,         
00035     MAXNET_ERR_DUPLICATE_JOB_NAME,  
00036     MAXNET_ERR_UNKNOWN              
00037 };
00038 
00039 //---------------------------------------------------------
00040 //-- Special Types
00041 
00044 struct HSERVER : public MaxHeapOperators {
00045     
00046     BYTE addr[8]; 
00047 };
00048 
00049 #define HBSERVER    (BYTE *)(void *) 
00050 typedef DWORD       HJOB; 
00051 
00052 
00055 struct Schedule: public MaxHeapOperators {
00060     DWORD hour;
00061 };
00062 
00065 struct WeekSchedule: public MaxHeapOperators {
00067     Schedule    day[7];
00069     int     AttendedPriority;
00071     int     UnattendedPriority;
00072 };