home *** CD-ROM | disk | FTP | other *** search
- //
- // Symbol types. These are passed to srv_symbol to translate Open Data Services
- // symbols.
- //
- #define SRV_ERROR 0
- #define SRV_DONE 1
- #define SRV_DATATYPE 2
- #define SRV_EVENT 4
-
- // define srv_symbol() SRV_ERRORs
- //
- #define SRV_ENO_OS_ERR 0
- #define SRV_INFO 1
- #define SRV_FATAL_PROCESS 10
- #define SRV_FATAL_SERVER 19
-
- // define event values
- //
- #define SRV_CONTINUE 0
- #define SRV_LANGUAGE 1
- #define SRV_CONNECT 2
- #define SRV_RPC 3
- #define SRV_RESTART 4
- #define SRV_DISCONNECT 5
- #define SRV_ATTENTION 6
- #define SRV_SLEEP 7
- #define SRV_START 8
- #define SRV_STOP 9
- #define SRV_EXIT 10
- #define SRV_CANCEL 11
- #define SRV_SETUP 12
- #define SRV_CLOSE 13
- #define SRV_PRACK 14
- #define SRV_PRERROR 15
- #define SRV_PROGRAMMER_DEFINED 100
-
- // define configuration values
- //
- #define SRV_SERVERNAME 0 // not a configuration option
- #define SRV_CONNECTIONS 1
- #define SRV_LOGFILE 2
- #define SRV_STACKSIZE 3
- #define SRV_COEXIST 4
- #define SRV_VERSION 5
-
- // define server values
- //
- #if !defined( NULL )
-
- #define NULL 0 // The null character
-
- #endif
-
- #if !defined( TRUE )
-
- #define TRUE 1 // Boolean true value
-
- #endif
-
- #if !defined( FALSE )
-
- #define FALSE 0 // Boolean false value
-
- #endif
-
- #if !defined( SUCCEED )
-
- #define SUCCEED 1 // Successful return value
-
- #endif
-
- #if !defined( FAIL )
-
- #define FAIL 0 // Unsuccessful return value
-
- #endif
-
- #define SRV_NULLTERM -1 // Indicates a null terminated string
-
- #if !defined( STDEXIT)
-
- #define STDEXIT 0 // Normal exit valule
-
- #endif
-
- #if !defined( ERREXIT)
-
- #define ERREXIT 1 // Error exit value
-
- #endif
-
- // Message types
- //
- #define SRV_MSG_INFO 1
- #define SRV_MSG_ERROR 2
-
- // Open Data Services Errors Servitiy
- //
- #define SRV_UNKNOWN 0 // 19
- #define SRV_NOSRVTHREAD 1 // 19
- #define SRV_NOMEMORY 2 // 19
- #define SRV_BADNBYTES 3 // 16
- #define SRV_BADBUFFER 4 // 20
- #define SRV_BADEVENTSPEC 5 // 16
- #define SRV_BADEVENT 6 // 16
- #define SRV_BADSTARTPOS 7 // 16
- #define SRV_NOFREESRVPROC 8 // 19
- #define SRV_BADNAMEDPIPE 9 // 19
- #define SRV_SRVERDCN 10 // 16
- #define SRV_SRVECOFL 11 // 16
- #define SRV_SRVECSYN 12 // 16
- #define SRV_SRVEPARM 13 // 16
- #define SRV_PIPE_EXISTS 14 // 19
- #define SRV_NO_CLIENT_WAIT 15 // 19
- #define SRV_NORPCRANGE 16 // 16
- #define SRV_NORPCORPARM 17 // 16
- #define SRV_NOPARMNAME 18 // 16
- #define SRV_NORPC 19 // 16
- #define SRV_BADTYPE 20 // 16
- #define SRV_NOSUBCHANNEL 21 // 19
- #define SRV_MAXERRORS 22
-
-
- // define SRV_PROC->status values
- //
- #define SRV_FREE 1 // slot is free for used
- #define SRV_SUSPENDED 2 // thread is in suspended state
- #define SRV_DEAD 3 // thread is dead
- #define SRV_KILL 4 // thread needs to be killed
- #define SRV_RUNNING 5 // thread is running
- #define SRV_ATTN 6 // client has sent an attention signal for this thread
-
- // Done packet status fields.
- //
- #define SRV_DONE_FINAL (DBUSMALLINT) 0x0000
- #define SRV_DONE_MORE (DBUSMALLINT) 0x0001
- #define SRV_DONE_ERROR (DBUSMALLINT) 0x0002
- #define SRV_DONE_INXACT (DBUSMALLINT) 0x0004
- #define SRV_DONE_PROC (DBUSMALLINT) 0x0008
- #define SRV_DONE_COUNT (DBUSMALLINT) 0x0010
- #define SRV_DONE_ATTN (DBUSMALLINT) 0x0020
-
- // RPC return parameter type
- //
- #define SRV_PARAMRETURN 0x0001
-
- // Event types
- //
- #define SRV_EQUEUED (BYTE) 0x1
- #define SRV_EIMMEDIATE (BYTE) 0x2
-
- // Field types used as field argument to srv_pfield().
- //
- //#define SRV_LANGUAGE 1 already defined above
- //#define SRV_EVENT 4 already defined above
-
- #define SRV_SPID 10
- #define SRV_NETSPID 11
- #define SRV_TYPE 12
- #define SRV_STATUS 13
- #define SRV_RMTSERVER 14
- #define SRV_HOST 15
- #define SRV_USER 16
- #define SRV_PWD 17
- #define SRV_CPID 18
- #define SRV_APPLNAME 19
- #define SRV_TDS 20
- #define SRV_CLIB 21
- #define SRV_LIBVERS 22
- #define SRV_ROWSENT 23
- #define SRV_BCPFLAG 24
- #define SRV_NATLANG 25
-
- // define the different TDS versions.
- //
- #define SRV_TDS_NONE 0
- #define SRV_TDS_2_0 1
- #define SRV_TDS_3_4 2
- #define SRV_TDS_4_0 3
-