src/Cedar/Listener.c
// Delete the UDP session from the UDP entry

Delete the UDP session from the UDP entry
Delete the UDP session from the UDP entry
void DelUDPEntry(CEDAR *cedar, SESSION *session)
{
	UINT num, i;
	if (cedar == NULL || session == NULL)
	{
		return;
	}
	LockList(cedar->UDPEntryList);
	{
		num = LIST_NUM(cedar->UDPEntryList);
		for (i = 0;i < num;i++)
		{
			UDP_ENTRY *e = LIST_DATA(cedar->UDPEntryList, i);
			if (e->Session == session)
			{
				ReleaseSession(e->Session);
				Delete(cedar->UDPEntryList, e);
				Free(e);
				UnlockList(cedar->UDPEntryList);
				Debug("UDP_Entry Deleted.\n");
				return;
			}
		}
	}
	UnlockList(cedar->UDPEntryList);
}
void DelUDPEntry ( CEDAR * cedar , SESSION * session ) { UINT num , i ; if ( cedar == NULL || session == NULL ) { return ; } LockList ( cedar -> UDPEntryList ) ; { num = LIST_NUM ( cedar -> UDPEntryList ) ; for ( i = 0 ; i < num ; i ++ ) { UDP_ENTRY * e = LIST_DATA ( cedar -> UDPEntryList , i ) ; if ( e -> Session == session ) { ReleaseSession ( e -> Session ) ; Delete ( cedar -> UDPEntryList , e ) ; Free ( e ) ; UnlockList ( cedar -> UDPEntryList ) ; Debug ( " \n " ) ; return ; } } } UnlockList ( cedar -> UDPEntryList ) ; }
Delete the UDP session from the UDP entry
Delete the UDP session from the UDP entry
// Validate arguments
