MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | #ifndef LPC_COMM_H_ |
| 2 | #define LPC_COMM_H_ |
| 3 | |
| 4 | /* return values for net_connect() */ |
| 5 | |
| 6 | #define NC_SUCCESS 0 /* Success! */ |
| 7 | #define NC_EUNKNOWNHOST 1 /* host address could not be resolved */ |
| 8 | #define NC_ENOSOCKET 2 /* socket could not be created */ |
| 9 | #define NC_ENOBIND 3 /* socket could not be bound */ |
| 10 | #define NC_ENOCONNECT 4 /* socket could not be connected */ |
| 11 | #define NC_ECONNREFUSED 5 /* target address not listening */ |
| 12 | #define NC_EMCONN 6 /* too many pending connections */ |
| 13 | #define NC_ENORESSOURCES 7 /* insufficient system ressources */ |
| 14 | |
| 15 | #endif /* LPC_COMM_H_ */ |