diff options
author | m0gg | 2006-12-03 17:30:57 +0000 |
---|---|---|
committer | m0gg | 2006-12-03 17:30:57 +0000 |
commit | c489665ace13d32f4959904b0215ed1021d0acf6 (patch) | |
tree | 7c9b3eb4d4d236a38e53be53d606c184b7192988 /nanohttp/nanohttp-socket.h | |
parent | 60881bf7b91a87d12d0b2e694a6aa0db0b8b6fda (diff) | |
download | csoap-c489665ace13d32f4959904b0215ed1021d0acf6.tar.gz csoap-c489665ace13d32f4959904b0215ed1021d0acf6.tar.bz2 |
Error codes moved
Diffstat (limited to 'nanohttp/nanohttp-socket.h')
-rw-r--r-- | nanohttp/nanohttp-socket.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/nanohttp/nanohttp-socket.h b/nanohttp/nanohttp-socket.h index 417693a..dcb19eb 100644 --- a/nanohttp/nanohttp-socket.h +++ b/nanohttp/nanohttp-socket.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-socket.h,v 1.35 2006/12/01 10:56:00 m0gg Exp $ + * $Id: nanohttp-socket.h,v 1.36 2006/12/03 17:30:58 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -26,6 +26,25 @@ /** * + * Socket error + * + */ +#define HSOCKET_ERROR 1000 +#define HSOCKET_ERROR_CREATE (HSOCKET_ERROR + 1) +#define HSOCKET_ERROR_GET_HOSTNAME (HSOCKET_ERROR + 2) +#define HSOCKET_ERROR_CONNECT (HSOCKET_ERROR + 3) +#define HSOCKET_ERROR_SEND (HSOCKET_ERROR + 4) +#define HSOCKET_ERROR_RECEIVE (HSOCKET_ERROR + 5) +#define HSOCKET_ERROR_BIND (HSOCKET_ERROR + 6) +#define HSOCKET_ERROR_LISTEN (HSOCKET_ERROR + 7) +#define HSOCKET_ERROR_ACCEPT (HSOCKET_ERROR + 8) +#define HSOCKET_ERROR_NOT_INITIALIZED (HSOCKET_ERROR + 9) +#define HSOCKET_ERROR_IOCTL (HSOCKET_ERROR + 10) +#define HSOCKET_ERROR_SSLCLOSE (HSOCKET_ERROR + 11) +#define HSOCKET_ERROR_SSLCTX (HSOCKET_ERROR + 11) + +/** + * * Socket definition * */ |