axa
2.2.0
Farsight Security Advanced Exchange Access (AXA)
|
axa_open_nmsg_out
contains NMSG stream function declaration.
Functions | |
int | axa_open_nmsg_out (axa_emsg_t *emsg, nmsg_output_t *out_nmsg_output, int *out_sock_type, const char *addr, bool output_buffering) |
Open an output nmsg stream for output or forwarding by sratunnel or sratool. More... | |
int axa_open_nmsg_out | ( | axa_emsg_t * | emsg, |
nmsg_output_t * | out_nmsg_output, | ||
int * | out_sock_type, | ||
const char * | addr, | ||
bool | output_buffering | ||
) |
Open an output nmsg stream for output or forwarding by sratunnel or sratool.
Note that all nmsg output objects are unbuffered.
[out] | emsg | if something goes wrong, this will contain the reason |
[out] | out_nmsg_output | nmsg_output_t of the newly opened NMSG connection |
[out] | out_sock_type | will hold the type of output socket (SOCK_STREAM or SOCK_DGRAM) |
[in] | addr | canonical protocol/address of the format: "host,port", "tcp:host,port", "udp:host,port", "file:filename" |
[in] | output_buffering | true == enable nmsg output buffering |
-1 | on error |
0 | on bad host/port/filename |
1 | on success and out_nmsg_output/out_sock_type will be set |