Go to the source code of this file.
Data Structures | |
struct | lwes_net_connection |
IP Multicast Channel object. More... | |
Functions | |
int | lwes_net_open (struct lwes_net_connection *conn, const char *address, const char *iface, int port) |
Open a multicast channel. | |
int | lwes_net_close (struct lwes_net_connection *conn) |
Close a multicast channel. | |
int | lwes_net_get_ttl (struct lwes_net_connection *conn) |
Get the current Time-To-Live on a multicast channel. | |
int | lwes_net_set_ttl (struct lwes_net_connection *conn, int new_ttl) |
Set a new Time-To-Live on a multicast channel. | |
int | lwes_net_get_sock_fd (struct lwes_net_connection *conn) |
Get the socket file descriptor for the multicast channel. | |
int | lwes_net_send_bytes (struct lwes_net_connection *conn, LWES_BYTE_P bytes, size_t len) |
Send bytes to the multicast channel. | |
int | lwes_net_sendto_bytes (struct lwes_net_connection *conn, char *address, char *iface, int port, LWES_BYTE_P bytes, size_t len) |
Send bytes to a different multicast channel. | |
int | lwes_net_recv_bind (struct lwes_net_connection *conn) |
Bind to the multicast channel. | |
int | lwes_net_recv_bytes (struct lwes_net_connection *conn, LWES_BYTE_P bytes, size_t len) |
Receive bytes from the multicast channel in blocking mode. | |
int | lwes_net_recv_bytes_by (struct lwes_net_connection *conn, LWES_BYTE_P bytes, size_t len, unsigned int timeout_ms) |
Receive bytes from the multicast channel with a timeout. |
|
Open a multicast channel.
|
|
Close a multicast channel.
|
|
Get the current Time-To-Live on a multicast channel.
|
|
Set a new Time-To-Live on a multicast channel.
|
|
Get the socket file descriptor for the multicast channel.
|
|
Send bytes to the multicast channel.
|
|
Send bytes to a different multicast channel. This can be used to send bytes out over an alternate channel, this will result in the creation and destruction of a struct lwes_net_connection internally.
|
|
Bind to the multicast channel. Used to actually bind to a channel, this should only be called if one plans to receive bytes from the channel
|
|
Receive bytes from the multicast channel in blocking mode. This calls lwes_net_recv_bind internally.
|
|
Receive bytes from the multicast channel with a timeout. This calls lwes_net_recv_bind internally.
|