axa  2.2.0
Farsight Security Advanced Exchange Access (AXA)
axa_open_nmsg_out

Detailed Description

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...
 

Function Documentation

◆ axa_open_nmsg_out()

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.

Parameters
[out]emsgif something goes wrong, this will contain the reason
[out]out_nmsg_outputnmsg_output_t of the newly opened NMSG connection
[out]out_sock_typewill hold the type of output socket (SOCK_STREAM or SOCK_DGRAM)
[in]addrcanonical protocol/address of the format: "host,port", "tcp:host,port", "udp:host,port", "file:filename"
[in]output_bufferingtrue == enable nmsg output buffering
Return values
-1on error
0on bad host/port/filename
1on success and out_nmsg_output/out_sock_type will be set