constants.h 390 B

1234567891011121314151617
  1. #ifndef __CONSTANTS_H__
  2. #define __CONSTANTS_H__
  3. #ifndef TRX_SOCKET_CONSTANTS
  4. #define TRX_SOCKET_CONSTANTS 1
  5. /**
  6. * Values used when attempting to open a socket
  7. */
  8. const int SOCKET_ERROR = -1;
  9. const int SOCKET_OK = 0;
  10. /**
  11. * Values used when listening for connections to a socket
  12. */
  13. const int WAIT_SOCKET_FAILURE = -1;
  14. const int WAIT_SOCKET_SUCCESS = 0;
  15. #endif
  16. #endif // __CONSTANTS_H__