22 lines
476 B
C
22 lines
476 B
C
#ifndef SHARE_SYSDEFS_IPC_NETSOCK_H_
|
|
#define SHARE_SYSDEFS_IPC_NETSOCK_H_
|
|
|
|
// matches values of picotcp
|
|
|
|
#define NETSOCK_IPV4 0
|
|
#define NETSOCK_TCP 6
|
|
|
|
#define NETSOCKEV_CLOSE 8
|
|
#define NETSOCKEV_ERR 0x80
|
|
#define NETSOCKEV_READ 1
|
|
#define NETSOCKEV_WRITE 2
|
|
#define NETSOCKEV_FINI 0x10
|
|
#define NETSOCKEV_CONN 4
|
|
|
|
typedef int32_t netsock_t;
|
|
typedef int32_t netsockev_t;
|
|
|
|
#define IS_NETSOCKEV_READY(ev) ((ev) != E_NOTYET)
|
|
|
|
#endif // SHARE_SYSDEFS_IPC_NETSOCK_H_
|