mikroSDK Reference Manual
bsd_socket_options.h
Go to the documentation of this file.
1
31#ifndef _BSD_SOCKET_OPTIONS_H
32#define _BSD_SOCKET_OPTIONS_H
33
34//Dependencies
35#include "core/net.h"
36#include "core/bsd_socket.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//BSD socket related functions
44int_t socketSetSoReuseAddrOption(Socket *socket, const int_t *optval,
45 socklen_t optlen);
46
47int_t socketSetSoBroadcastOption(Socket *socket, const int_t *optval,
48 socklen_t optlen);
49
50int_t socketSetSoSndTimeoOption(Socket *socket, const struct timeval *optval,
51 socklen_t optlen);
52
53int_t socketSetSoRcvTimeoOption(Socket *socket, const struct timeval *optval,
54 socklen_t optlen);
55
56int_t socketSetSoSndBufOption(Socket *socket, const int_t *optval,
57 socklen_t optlen);
58
59int_t socketSetSoRcvBufOption(Socket *socket, const int_t *optval,
60 socklen_t optlen);
61
62int_t socketSetSoKeepAliveOption(Socket *socket, const int_t *optval,
63 socklen_t optlen);
64
65int_t socketSetIpTosOption(Socket *socket, const int_t *optval,
66 socklen_t optlen);
67
68int_t socketSetIpTtlOption(Socket *socket, const int_t *optval,
69 socklen_t optlen);
70
71int_t socketSetIpMulticastIfOption(Socket *socket,
72 const struct in_addr *optval, socklen_t optlen);
73
74int_t socketSetIpMulticastTtlOption(Socket *socket, const int_t *optval,
75 socklen_t optlen);
76
77int_t socketSetIpMulticastLoopOption(Socket *socket, const int_t *optval,
78 socklen_t optlen);
79
80int_t socketSetIpAddMembershipOption(Socket *socket,
81 const struct ip_mreq *optval, socklen_t optlen);
82
83int_t socketSetIpDropMembershipOption(Socket *socket,
84 const struct ip_mreq *optval, socklen_t optlen);
85
86int_t socketSetIpPktInfoOption(Socket *socket, const int_t *optval,
87 socklen_t optlen);
88
89int_t socketSetIpRecvTosOption(Socket *socket, const int_t *optval,
90 socklen_t optlen);
91
92int_t socketSetIpRecvTtlOption(Socket *socket, const int_t *optval,
93 socklen_t optlen);
94
95int_t socketSetIpv6TrafficClassOption(Socket *socket, const int_t *optval,
96 socklen_t optlen);
97
98int_t socketSetIpv6UnicastHopsOption(Socket *socket, const int_t *optval,
99 socklen_t optlen);
100
101int_t socketSetIpv6MulticastIfOption(Socket *socket,
102 const struct in_addr *optval, socklen_t optlen);
103
104int_t socketSetIpv6MulticastHopsOption(Socket *socket, const int_t *optval,
105 socklen_t optlen);
106
107int_t socketSetIpv6MulticastLoopOption(Socket *socket, const int_t *optval,
108 socklen_t optlen);
109
110int_t socketSetIpv6AddMembershipOption(Socket *socket,
111 const struct ipv6_mreq *optval, socklen_t optlen);
112
113int_t socketSetIpv6DropMembershipOption(Socket *socket,
114 const struct ipv6_mreq *optval, socklen_t optlen);
115
116int_t socketSetIpv6OnlyOption(Socket *socket, const int_t *optval,
117 socklen_t optlen);
118
119int_t socketSetIpv6PktInfoOption(Socket *socket, const int_t *optval,
120 socklen_t optlen);
121
122int_t socketSetIpv6RecvTrafficClassOption(Socket *socket, const int_t *optval,
123 socklen_t optlen);
124
125int_t socketSetIpv6RecvHopLimitOption(Socket *socket, const int_t *optval,
126 socklen_t optlen);
127
128int_t socketSetTcpNoDelayOption(Socket *socket, const int_t *optval,
129 socklen_t optlen);
130
131int_t socketSetTcpMaxSegOption(Socket *socket, const int_t *optval,
132 socklen_t optlen);
133
134int_t socketSetTcpKeepIdleOption(Socket *socket, const int_t *optval,
135 socklen_t optlen);
136
137int_t socketSetTcpKeepIntvlOption(Socket *socket, const int_t *optval,
138 socklen_t optlen);
139
140int_t socketSetTcpKeepCntOption(Socket *socket, const int_t *optval,
141 socklen_t optlen);
142
143int_t socketGetSoReuseAddrOption(Socket *socket, int_t *optval,
144 socklen_t *optlen);
145
146int_t socketGetSoBroadcastOption(Socket *socket, int_t *optval,
147 socklen_t *optlen);
148
149int_t socketGetSoSndTimeoOption(Socket *socket, struct timeval *optval,
150 socklen_t *optlen);
151
152int_t socketGetSoRcvTimeoOption(Socket *socket, struct timeval *optval,
153 socklen_t *optlen);
154
155int_t socketGetSoSndBufOption(Socket *socket, int_t *optval,
156 socklen_t *optlen);
157
158int_t socketGetSoRcvBufOption(Socket *socket, int_t *optval,
159 socklen_t *optlen);
160
161int_t socketGetSoKeepAliveOption(Socket *socket, int_t *optval,
162 socklen_t *optlen);
163
164int_t socketGetSoErrorOption(Socket *socket, int_t *optval,
165 socklen_t *optlen);
166
167int_t socketGetIpTosOption(Socket *socket, int_t *optval,
168 socklen_t *optlen);
169
170int_t socketGetIpTtlOption(Socket *socket, int_t *optval,
171 socklen_t *optlen);
172
173int_t socketGetIpMulticastTtlOption(Socket *socket, int_t *optval,
174 socklen_t *optlen);
175
176int_t socketGetIpMulticastLoopOption(Socket *socket, int_t *optval,
177 socklen_t *optlen);
178
179int_t socketGetIpPktInfoOption(Socket *socket, int_t *optval,
180 socklen_t *optlen);
181
182int_t socketGetIpRecvTosOption(Socket *socket, int_t *optval,
183 socklen_t *optlen);
184
185int_t socketGetIpRecvTtlOption(Socket *socket, int_t *optval,
186 socklen_t *optlen);
187
188int_t socketGetIpv6TrafficClassOption(Socket *socket, int_t *optval,
189 socklen_t *optlen);
190
191int_t socketGetIpv6UnicastHopsOption(Socket *socket, int_t *optval,
192 socklen_t *optlen);
193
194int_t socketGetIpv6MulticastHopsOption(Socket *socket, int_t *optval,
195 socklen_t *optlen);
196
197int_t socketGetIpv6MulticastLoopOption(Socket *socket, int_t *optval,
198 socklen_t *optlen);
199
200int_t socketGetIpv6OnlyOption(Socket *socket, int_t *optval,
201 socklen_t *optlen);
202
203int_t socketGetIpv6PktInfoOption(Socket *socket, int_t *optval,
204 socklen_t *optlen);
205
206int_t socketGetIpv6RecvTrafficClassOption(Socket *socket, int_t *optval,
207 socklen_t *optlen);
208
209int_t socketGetIpv6RecvHopLimitOption(Socket *socket, int_t *optval,
210 socklen_t *optlen);
211
212int_t socketGetTcpNoDelayOption(Socket *socket, int_t *optval,
213 socklen_t *optlen);
214
215int_t socketGetTcpMaxSegOption(Socket *socket, int_t *optval,
216 socklen_t *optlen);
217
218int_t socketGetTcpKeepIdleOption(Socket *socket, int_t *optval,
219 socklen_t *optlen);
220
221int_t socketGetTcpKeepIntvlOption(Socket *socket, int_t *optval,
222 socklen_t *optlen);
223
224int_t socketGetTcpKeepCntOption(Socket *socket, int_t *optval,
225 socklen_t *optlen);
226
227//C++ guard
228#ifdef __cplusplus
229}
230#endif
231
232#endif
BSD socket API.
int_t socklen_t
Length type.
Definition bsd_socket.h:279
TCP/IP stack core.
Structure that represents an IPv4 address.
Definition bsd_socket.h:316
Multicast group information for IPv4 addresses.
Definition bsd_socket.h:363
Multicast group information for IPv6 addresses.
Definition bsd_socket.h:374
Timeout structure.
Definition bsd_socket.h:499