TCP Support for Non-Blocking Connect.
More...
TCP Support for Non-Blocking Connect.
NCX UDP-Notif Header Support.
◆ ncx_tcp_connect()
| int ncx_tcp_connect |
( |
int |
sockfd, |
|
|
struct sockaddr * |
name, |
|
|
socklen_t |
namelen, |
|
|
unsigned short |
timeout_sec, |
|
|
int * |
cp_errno |
|
) |
| |
Initiate a TCP socket using 'connect'.
- Parameters
-
| sockfd | File descriptor to use for the connect |
| name | struct with prepared destination address |
| namelen | socket descriptor struct length |
| timeout_sec | number of seconds to wait; 0 == use blocking mode |
| [out] | cp_errno | pointer to return errno status number if error |
- Returns
- status
- Return values
-
| -1 | some error occurred; errno in *cp_errno |
| 0 | Success |
◆ udpnotif_clean_scb()
| void udpnotif_clean_scb |
( |
ses_cb_t * |
scb | ) |
|
Clean the UDP Collector control blocks in this SCB.
- Parameters
-
| scb | pointer for the session to clean |
◆ udpnotif_dump_hdr()
Log the UDP-Notif header if current log-level is lvl or higher.
- Parameters
-
| hdr | UDP-Notif header to print to log |
| lvl | log-level needed to show any output |
◆ udpnotif_get_hdr()
FUNCTION udpnotif_get_hdr.
Parse a UDP-Notif Header from a network buffer
- Parameters
-
| buff | buffer to parse from; only the binary header is read |
| bufflen | total buffer length read |
| [out] | rethdr | UDP-Notif header struct filled in from parsing the buff |
- Returns
- status
◆ udpnotif_get_msgQ()
The UDP IO input front-end for UDP-Notif Receiver.
- Parameters
-
| scb | pointer for the session to check |
| hdr | message header used for debugging info |
- Returns
- pointer to the messageQ or NULL if some error
◆ udpnotif_get_print_addr()
| const xmlChar * udpnotif_get_print_addr |
( |
const ses_cb_t * |
scb | ) |
|
The UDP recvaddr print address.
- Parameters
-
| scb | pointer for the session to check |
- Returns
- pointer to the print address or UNLL if some error
◆ udpnotif_get_publisher_cnt()
| uint32 udpnotif_get_publisher_cnt |
( |
const ses_cb_t * |
scb | ) |
|
Get the current publisher count.
- Parameters
-
| scb | pointer for the session to check |
- Returns
- number of publishers received messages from
◆ udpnotif_init_scb()
Init the UDP Collector control blocks in this SCB.
- Parameters
-
| scb | pointer for the session to inir |
- Returns
- status
- ERR_INTERNAL_MEM if malloc control block fails
◆ udpnotif_read()
The UDP IO input front-end for UDP-Notif Receiver.
- Parameters
-
| scb | pointer for the session to read |
- Returns
- number of bytes read into the buffer
-1 indicates error and EOF
◆ udpnotif_setup_new_msg()
Init the Collector session for handling a message from the latest publisher.
- Parameters
-
| scb | pointer for the session to use to for state data |
- Returns
- status