1#ifndef NROS_PLATFORM_NET_H
2#define NROS_PLATFORM_NET_H
48#define NROS_PLATFORM_NET_SOCKET_ERROR ((size_t) -1)
55 const uint8_t *address,
85 const uint8_t *address,
100 const uint8_t *buf,
size_t len,
101 const void *endpoint);
115 const void *endpoint,
118 const uint8_t *iface);
121 const void *endpoint,
123 const uint8_t *iface,
124 const uint8_t *join);
132 uint8_t *buf,
size_t len,
137 uint8_t *buf,
size_t len,
142 const uint8_t *buf,
size_t len,
143 const void *endpoint);
189 if (sock == NULL) {
return -1; }
194 return *(
const int *)sock;