mio_sink_udp.h File Reference
MIO active UDP socket sink initializer.
More...
#include <airframe/mio.h>
Go to the source code of this file.
|
Functions |
gboolean | mio_sink_init_udp (MIOSink *sink, const char *spec, MIOType vsp_type, void *cfg, GError **err) |
| Initialize a sink for writing datagrams to an active UDP socket.
|
Detailed Description
MIO active UDP socket sink initializer.
Most applications should use the interface in mio_config.h to access this initializer.
Function Documentation
gboolean mio_sink_init_udp |
( |
MIOSink * |
sink, |
|
|
const char * |
spec, |
|
|
MIOType |
vsp_type, |
|
|
void * |
cfg, |
|
|
GError ** |
err |
|
) |
|
|
|
Initialize a sink for writing datagrams to an active UDP socket.
- Parameters:
-
| sink | pointer to MIOSink to initialize. This MIOSink will be overwritten. |
| spec | input specifier to initialize MIOSource with. Must be a service specifier of the form "host[,service]" where host is the IPv4 or IPv6 name or address of an interface to connect to, and service is a service name or UDP port number to connect to. If omitted, service is taken from the cfg paramater. |
| vsp_type | requested sink pointer type, or MIO_T_ANY for default. |
| cfg | pointer to configuration context. Must be a pointer to a string with the default service name or integer port number. |
| err | An error description pointer. |
- Returns:
- TRUE if the MIOSink was successfully initialized.
|