Porting PicoTCP WIP
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
#define E_RESOURCEAVAIL -12
|
||||
#define E_SPAWNERROR -13
|
||||
#define E_NOTYET -14
|
||||
#define E_NETSOCKLISTEN -15
|
||||
|
||||
#if !defined(__ASSEMBLER__)
|
||||
|
||||
|
||||
21
share/sysdefs/ipcnetsock.h
Normal file
21
share/sysdefs/ipcnetsock.h
Normal file
@ -0,0 +1,21 @@
|
||||
#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_
|
||||
@ -34,7 +34,9 @@
|
||||
#define SYS_DEV_LISTSIZE 34
|
||||
#define SYS_DEV_STAT 35
|
||||
#define SYS_DEV_CMD 36
|
||||
#define SYS_TIME 38
|
||||
|
||||
#define SYS_TIME 38
|
||||
#define SYS_IPC_NETSOCKMAKE 39
|
||||
#define SYS_IPC_NETSOCKLISTEN 40
|
||||
#define SYS_IPC_NETSOCKPOLLEV 41
|
||||
|
||||
#endif // SHARE_HDRS_SYSCALL_H_
|
||||
|
||||
Reference in New Issue
Block a user