#include <fixbuf/autoinc.h>
Go to the source code of this file.
Functions | |
| gboolean | fix_udp_read_start (void *ectx, void **ictx, GError **err) |
| Low-level input start function for UDP. | |
| gboolean | fix_udp_read (void *ectx, void *ictx, uint8_t *buf, uint32_t *len, GError **err) |
| Low-level input read function for UDP. | |
| gboolean | fix_udp_read_end (void *ectx, void **ictx, GError **err) |
| Low-level input end function for UDP. | |
| gboolean | fix_udp_write (void *ectx, void *ictx, uint8_t *buf, uint32_t len, GError **err) |
| Low-level output write function for UDP. | |
By passing these functions to fix_writer_alloc() or fix_reader_alloc(), fixbuf can be used to export and collect IPFIX messages via UDP.
|
||||||||||||||||||||||||
|
Low-level input read function for UDP. Copies next available bytes out of the message's internal context. ectx is a UDP socket file descriptor. Requires message start and end functions to read the message into the internal context. Do not call this directly; pass it to fix_reader_alloc() instead.
|
|
||||||||||||||||
|
Low-level input end function for UDP. Cleans up internal context allocated by fix_udp_read_start(). Do not call this directly; pass it to fix_reader_alloc() instead.
|
|
||||||||||||||||
|
Low-level input start function for UDP. Reads next available message from UDP socket. ectx is a UDP socket file descriptor, which must already be bound to the port to receive IPFIX messages from via bind(2). Use of this function will cause fix_read_start() to block until a UDP datagram is received. Do not call this directly; pass it to fix_reader_alloc() instead.
|
|
||||||||||||||||||||||||
|
Low-level output write function for UDP. ectx is a UDP socket file descriptor, which must be associated with the address to send IPFIX messages to via connect(2). Since non-final (i.e., legal on-the-wire) messages are guaranteed to be written in a single write call by fixbuf, this function does not require message start or end functions.
|