yumapro  25.10-1
YumaPro SDK
Loading...
Searching...
No Matches
ses_udpnotif_cb_t Struct Reference

Special UDP-Notif Collector Control Block Used to manage the DGRAM connection where the publishers are not known in advance. More...

#include <ses.h>

Data Fields

uint32 curmsg_addrlen
 UDP-Notif read function stores the actual sockaddr length.
 
xmlChar curmsg_addr [SES_SOCKADDR_BUFFLEN]
 UDP-Notif needs to capture the IP address and port of the UDP packet sender since this can be different for each packet. More...
 
dlq_hdr_t pubcbQ
 UDP-Notif needs a special Queue of publisher control blocks since multiple source addresses can be sending to the same collector. More...
 
ses_setup_fn_t setup_fn
 The session control block setup by udpnotif_init is the collector session listening to the collector socket. More...
 
void * cookie
 parameter to send to callback function
 
const xmlChar * curmsg_print_addr
 back-pointer to the pubcb->print_addr that matches the curmsg_addr field
 

Detailed Description

Special UDP-Notif Collector Control Block Used to manage the DGRAM connection where the publishers are not known in advance.

Field Documentation

◆ curmsg_addr

xmlChar curmsg_addr[SES_SOCKADDR_BUFFLEN]

UDP-Notif needs to capture the IP address and port of the UDP packet sender since this can be different for each packet.

  • Each time the udpnotif_read function is called the curmsg_addr field is set via 'recvfrom' function.
  • Then the publisher CB is found or created in udpnoiif udpnotif_get_msgQ when a message is complete and 'ready' and the curmsg_print_addr is set
  • The application layer uses this info via the setup_fn callback to find the YANG library (first time) or setup current session state to the correct YANG library state

struct sockaddr_in curmsg_addr;

◆ pubcbQ

dlq_hdr_t pubcbQ

UDP-Notif needs a special Queue of publisher control blocks since multiple source addresses can be sending to the same collector.

This queue of internal structs in udpnotif is cleaned with udpnotif_clean_scb TEMP : STORE IN QUEUE :: WILL CHANGE TO AVL TREE

◆ setup_fn

ses_setup_fn_t setup_fn

The session control block setup by udpnotif_init is the collector session listening to the collector socket.

Each time a message is received the session setup callback is invoked so the correct YANG modules can be in place to process the incoming message


The documentation for this struct was generated from the following file: