axa_open_nmsg_out
contains NMSG stream function declaration.
|
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...
|
|
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] | 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" |
- Return values
-
-1 | on error |
0 | on bad host/port/filename |
1 | on success and out_nmsg_output/out_sock_type will be set |