src/Cedar/Listener.c
// Add an UDP session to the UDP entry

Add an UDP session to the UDP entry
Add an UDP session to the UDP entry
void AddUDPEntry(CEDAR *cedar, SESSION *session)
{
	UDP_ENTRY *e;
	if (cedar == NULL || session == NULL)
	{
		return;
	}
	e = ZeroMalloc(sizeof(UDP_ENTRY));
	e->Session = session;
	e->SessionKey32 = session->SessionKey32;
	AddRef(session->ref);
	LockList(cedar->UDPEntryList);
	{
		Add(cedar->UDPEntryList, e);
	}
	UnlockList(cedar->UDPEntryList);
	Debug("UDP_Entry Added.\n");
}
void AddUDPEntry ( CEDAR * cedar , SESSION * session ) { UDP_ENTRY * e ; if ( cedar == NULL || session == NULL ) { return ; } e = ZeroMalloc ( sizeof ( UDP_ENTRY ) ) ; e -> Session = session ; e -> SessionKey32 = session -> SessionKey32 ; AddRef ( session -> ref ) ; LockList ( cedar -> UDPEntryList ) ; { Add ( cedar -> UDPEntryList , e ) ; } UnlockList ( cedar -> UDPEntryList ) ; Debug ( " \n " ) ; }
Add an UDP session to the UDP entry
Add an UDP session to the UDP entry
// Validate arguments
