![]() |
COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Functions | |
| int32_t | socket_open (socket_channel *channel, NetworkType ntype, const char *address, uint16_t port, uint16_t role, bool blocking, uint32_t usectimeo, uint32_t rcvbuf, uint32_t sndbuf) |
| Open UDP socket. More... | |
| int32_t | socket_open (socket_channel &channel, NetworkType ntype, const char *address, uint16_t port, uint16_t role, bool blocking, uint32_t usectimeo, uint32_t rcvbuf, uint32_t sndbuf) |
| int32_t | socket_accept (socket_channel server, socket_channel &client) |
| uint16_t | socket_calc_udp_checksum (vector< uint8_t > packet) |
| Calculate UDP Checksum. More... | |
| int32_t | socket_check_udp_checksum (vector< uint8_t > packet) |
| Check UDP checksum. More... | |
| int32_t | socket_set_udp_checksum (vector< uint8_t > &packet) |
| Set UDP checksum. More... | |
| int32_t | socket_blocking (socket_channel *channel, bool blocking) |
| int32_t | socket_blocking (socket_channel &channel, bool blocking) |
| int32_t | socket_close (socket_channel *channel) |
| Close socket. More... | |
| int32_t | socket_close (socket_channel &channel) |
| vector< socket_channel > | socket_find_addresses (NetworkType ntype) |
| Discover interfaces. More... | |
| int32_t | socket_recvfrom (socket_channel &channel, string &buffer, size_t maxlen, int flags) |
| int32_t | socket_recvfrom (socket_channel &channel, vector< uint8_t > &buffer, size_t maxlen, int flags) |
| int32_t | socket_sendto (socket_channel &channel, const string buffer, int flags) |
| int32_t | socket_sendto (socket_channel &channel, const vector< uint8_t > buffer, int flags) |