File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,30 @@ enum nsapi_protocol_t {
53
53
NSAPI_UDP, /* !< Socket is of UDP type */
54
54
};
55
55
56
+ /* Enum of standardized stack option levels
57
+ *
58
+ * @enum nsapi_level_t
59
+ */
60
+ enum nsapi_level_t {
61
+ NSAPI_STACK, /* !< Stack option level */
62
+ NSAPI_SOCKET, /* !< Socket option level */
63
+ };
64
+
65
+ /* Enum of standardized stack options
66
+ *
67
+ * These options may not be supported on all stacks, in which
68
+ * case NSAPI_ERROR_UNSUPPORTED may be returned from setsockopt.
69
+ *
70
+ * @enum nsapi_option_t
71
+ */
72
+ enum nsapi_option_t {
73
+ NSAPI_REUSEADDR, /* !< Allow bind to reuse local addresses */
74
+ NSAPI_KEEPALIVE, /* !< Enables sending of keepalive messages */
75
+ NSAPI_LINGER, /* !< Keeps close from returning until queues empty */
76
+ NSAPI_SNDBUF, /* !< Sets send buffer size */
77
+ NSAPI_RCVBUF, /* !< Sets recv buffer size */
78
+ };
79
+
56
80
/* * Maximum size of MAC address representation
57
81
*/
58
82
#define NSAPI_MAC_SIZE 18
You can’t perform that action at this time.
0 commit comments