-typedef enum {\r
- SOCK_ATTACH, ///< Attach current socket to a new PCB\r
- SOCK_DETACH, ///< Detach current socket from the PCB\r
- SOCK_CONFIGURE, ///< Configure attached PCB\r
- SOCK_FLUSH, ///< Flush attached PCB\r
- SOCK_SND, ///< Need protocol to send something\r
- SOCK_SNDPUSH, ///< Need protocol to send pushed data\r
- SOCK_SNDURG, ///< Need protocol to send urgent data\r
- SOCK_CONSUMED, ///< Application has retrieved data from socket\r
- SOCK_CONNECT, ///< Need to connect to a peer\r
- SOCK_CLOSE, ///< Need to close the protocol process\r
- SOCK_ABORT, ///< Need to reset the protocol process\r
- SOCK_POLL, ///< Need to poll to the protocol layer\r
- SOCK_ROUTE, ///< Need to add a route information\r
- SOCK_MODE, ///< Need to get the mode data of the protocol\r
- SOCK_GROUP ///< Need to join a mcast group\r
-} SOCK_REQUEST;\r
+#define SOCK_ATTACH 0 ///< Attach current socket to a new PCB\r
+#define SOCK_DETACH 1 ///< Detach current socket from the PCB\r
+#define SOCK_CONFIGURE 2 ///< Configure attached PCB\r
+#define SOCK_FLUSH 3 ///< Flush attached PCB\r
+#define SOCK_SND 4 ///< Need protocol to send something\r
+#define SOCK_SNDPUSH 5 ///< Need protocol to send pushed data\r
+#define SOCK_SNDURG 6 ///< Need protocol to send urgent data\r
+#define SOCK_CONSUMED 7 ///< Application has retrieved data from socket\r
+#define SOCK_CONNECT 8 ///< Need to connect to a peer\r
+#define SOCK_CLOSE 9 ///< Need to close the protocol process\r
+#define SOCK_ABORT 10 ///< Need to reset the protocol process\r
+#define SOCK_POLL 11 ///< Need to poll to the protocol layer\r
+#define SOCK_ROUTE 12 ///< Need to add a route information\r
+#define SOCK_MODE 13 ///< Need to get the mode data of the protocol\r
+#define SOCK_GROUP 14 ///< Need to join a mcast group\r