axa  1.2.1
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)
 Open an output NMSG stream for output or forwarding by sratunnel or sratool. More...
 

Function Documentation

int axa_open_nmsg_out ( axa_emsg_t emsg,
nmsg_output_t *  out_nmsg_output,
int *  out_sock_type,
const char *  addr 
)

Open an output NMSG stream for output or forwarding by sratunnel or sratool.

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"
Return values
-1on error
0on bad host/port/filename
1on success and out_nmsg_output/out_sock_type will be set