Rev 4704 | Rev 4712 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4704 | Rev 4708 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | 42 | ||
43 | #include <ipc/ipc.h> |
43 | #include <ipc/ipc.h> |
44 | 44 | ||
45 | #include "../messages.h" |
45 | #include "../messages.h" |
46 | 46 | ||
- | 47 | #include "../include/socket.h" |
|
- | 48 | ||
47 | typedef enum{ |
49 | typedef enum{ |
48 | NET_SOCKET = NET_SOCKET_FIRST, |
50 | NET_SOCKET = NET_SOCKET_FIRST, |
49 | NET_SOCKET_BIND, |
51 | NET_SOCKET_BIND, |
50 | NET_SOCKET_LISTEN, |
52 | NET_SOCKET_LISTEN, |
51 | NET_SOCKET_ACCEPT, |
53 | NET_SOCKET_ACCEPT, |
Line 75... | Line 77... | ||
75 | #define SOCKET_GET_HEADER_SIZE( call ) ( int ) IPC_GET_ARG2( call ) |
77 | #define SOCKET_GET_HEADER_SIZE( call ) ( int ) IPC_GET_ARG2( call ) |
76 | #define SOCKET_GET_BACKLOG( call ) ( int ) IPC_GET_ARG2( call ) |
78 | #define SOCKET_GET_BACKLOG( call ) ( int ) IPC_GET_ARG2( call ) |
77 | #define SOCKET_GET_OPT_LEVEL( call ) ( int ) IPC_GET_ARG2( call ) |
79 | #define SOCKET_GET_OPT_LEVEL( call ) ( int ) IPC_GET_ARG2( call ) |
78 | #define SOCKET_SET_DATA_FRAGMENTS( call ) ( int * ) & IPC_GET_ARG2( call ) |
80 | #define SOCKET_SET_DATA_FRAGMENTS( call ) ( int * ) & IPC_GET_ARG2( call ) |
79 | #define SOCKET_GET_DATA_FRAGMENTS( call ) ( int ) IPC_GET_ARG2( call ) |
81 | #define SOCKET_GET_DATA_FRAGMENTS( call ) ( int ) IPC_GET_ARG2( call ) |
80 | #define SOCKET_SET_ADDRESS_LENGTH( call ) ( size_t * ) & IPC_GET_ARG2( call ) |
82 | #define SOCKET_SET_ADDRESS_LENGTH( call ) ( socklen_t * ) & IPC_GET_ARG2( call ) |
81 | #define SOCKET_GET_ADDRESS_LENGTH( call ) ( size_t ) IPC_GET_ARG2( call ) |
83 | #define SOCKET_GET_ADDRESS_LENGTH( call ) ( socklen_t ) IPC_GET_ARG2( call ) |
82 | 84 | ||
83 | #define SOCKET_SET_DATA_FRAGMENT_SIZE( call ) ( int * ) & IPC_GET_ARG3( call ) |
85 | #define SOCKET_SET_DATA_FRAGMENT_SIZE( call ) ( size_t * ) & IPC_GET_ARG3( call ) |
84 | #define SOCKET_GET_DATA_FRAGMENT_SIZE( call ) ( int ) IPC_GET_ARG3( call ) |
86 | #define SOCKET_GET_DATA_FRAGMENT_SIZE( call ) ( size_t ) IPC_GET_ARG3( call ) |
85 | 87 | ||
86 | #define SOCKET_GET_FLAGS( call ) ( int ) IPC_GET_ARG4( call ) |
88 | #define SOCKET_GET_FLAGS( call ) ( int ) IPC_GET_ARG4( call ) |
87 | 89 | ||
88 | #define SOCKET_GET_OPT_NAME( call ) ( int ) IPC_GET_ARG4( call ) |
90 | #define SOCKET_GET_OPT_NAME( call ) ( int ) IPC_GET_ARG4( call ) |
89 | 91 |