constants.hpp 323 B

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