ET System  16.5
All Data Structures Files Functions Variables Typedefs Macros Modules Pages
Errors

Listing of all the error codes and routines dealing with errors. More...

Macros

#define ET_OK   0
 No error. More...
 
#define ET_ERROR   (-1)
 General error. More...
 
#define ET_ERROR_TOOMANY   (-2)
 Too many somethings (stations, attachments, temp events, ET system responses) exist. More...
 
#define ET_ERROR_EXISTS   (-3)
 ET system file or station already exists. More...
 
#define ET_ERROR_WAKEUP   (-4)
 Sleeping routine woken up by et_wakeup_attachment() or et_wakeup_all(). More...
 
#define ET_ERROR_TIMEOUT   (-5)
 Timed out. More...
 
#define ET_ERROR_EMPTY   (-6)
 No events available in async mode. More...
 
#define ET_ERROR_BUSY   (-7)
 Resource is busy. More...
 
#define ET_ERROR_DEAD   (-8)
 ET system is dead. More...
 
#define ET_ERROR_READ   (-9)
 Network read error. More...
 
#define ET_ERROR_WRITE   (-10)
 Network write error,. More...
 
#define ET_ERROR_REMOTE   (-11)
 Cannot allocate memory in remote client. More...
 
#define ET_ERROR_NOREMOTE   (-12)
 (Currently not used). More...
 
#define ET_ERROR_TOOBIG   (-13)
 Client is 32 bits & server is 64 (or vice versa) and event is too big for one. More...
 
#define ET_ERROR_NOMEM   (-14)
 Cannot allocate memory. More...
 
#define ET_ERROR_BADARG   (-15)
 Bad argument given to function. More...
 
#define ET_ERROR_SOCKET   (-16)
 Socket option could not be set. More...
 
#define ET_ERROR_NETWORK   (-17)
 Host name or address could not be resolved, or cannot connect. More...
 
#define ET_ERROR_CLOSED   (-18)
 ET system has been closed by client. More...
 
#define ET_ERROR_JAVASYS   (-19)
 C code trying to open Java-based ET system file locally. More...
 

Functions

char * et_perror (int error)
 This routine returns a string describing the given error condition. More...
 

Detailed Description

Listing of all the error codes and routines dealing with errors.

Macro Definition Documentation

◆ ET_ERROR

#define ET_ERROR   (-1)

General error.

◆ ET_ERROR_BADARG

#define ET_ERROR_BADARG   (-15)

Bad argument given to function.

◆ ET_ERROR_BUSY

#define ET_ERROR_BUSY   (-7)

Resource is busy.

◆ ET_ERROR_CLOSED

#define ET_ERROR_CLOSED   (-18)

ET system has been closed by client.

◆ ET_ERROR_DEAD

#define ET_ERROR_DEAD   (-8)

ET system is dead.

◆ ET_ERROR_EMPTY

#define ET_ERROR_EMPTY   (-6)

No events available in async mode.

◆ ET_ERROR_EXISTS

#define ET_ERROR_EXISTS   (-3)

ET system file or station already exists.

◆ ET_ERROR_JAVASYS

#define ET_ERROR_JAVASYS   (-19)

C code trying to open Java-based ET system file locally.

◆ ET_ERROR_NETWORK

#define ET_ERROR_NETWORK   (-17)

Host name or address could not be resolved, or cannot connect.

◆ ET_ERROR_NOMEM

#define ET_ERROR_NOMEM   (-14)

Cannot allocate memory.

◆ ET_ERROR_NOREMOTE

#define ET_ERROR_NOREMOTE   (-12)

(Currently not used).

◆ ET_ERROR_READ

#define ET_ERROR_READ   (-9)

Network read error.

◆ ET_ERROR_REMOTE

#define ET_ERROR_REMOTE   (-11)

Cannot allocate memory in remote client.

◆ ET_ERROR_SOCKET

#define ET_ERROR_SOCKET   (-16)

Socket option could not be set.

◆ ET_ERROR_TIMEOUT

#define ET_ERROR_TIMEOUT   (-5)

Timed out.

◆ ET_ERROR_TOOBIG

#define ET_ERROR_TOOBIG   (-13)

Client is 32 bits & server is 64 (or vice versa) and event is too big for one.

◆ ET_ERROR_TOOMANY

#define ET_ERROR_TOOMANY   (-2)

Too many somethings (stations, attachments, temp events, ET system responses) exist.

◆ ET_ERROR_WAKEUP

#define ET_ERROR_WAKEUP   (-4)

Sleeping routine woken up by et_wakeup_attachment() or et_wakeup_all().

◆ ET_ERROR_WRITE

#define ET_ERROR_WRITE   (-10)

Network write error,.

◆ ET_OK

#define ET_OK   0

No error.

Function Documentation

◆ et_perror()

char* et_perror ( int  error)

This routine returns a string describing the given error condition.

The returned string is a static char array. This means it is not thread-safe and will be overwritten on subsequent calls.

Parameters
errorerror condition
Returns
error string

References ET_ERROR, ET_ERROR_BADARG, ET_ERROR_BUSY, ET_ERROR_CLOSED, ET_ERROR_DEAD, ET_ERROR_EMPTY, ET_ERROR_EXISTS, ET_ERROR_JAVASYS, ET_ERROR_NETWORK, ET_ERROR_NOMEM, ET_ERROR_NOREMOTE, ET_ERROR_READ, ET_ERROR_REMOTE, ET_ERROR_SOCKET, ET_ERROR_TIMEOUT, ET_ERROR_TOOBIG, ET_ERROR_TOOMANY, ET_ERROR_WAKEUP, ET_ERROR_WRITE, and ET_OK.