mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 08:14:58 +03:00
Mayaqua/Network: add StopUdpListener()
This allows to stop a UDP listener without deleting it. It's especially useful when no datagrams should be received anymore, but there are other threads accessing the listener.
This commit is contained in:
@ -1357,6 +1357,7 @@ UINT64 GetHostIPAddressListHash();
|
||||
UDPLISTENER *NewUdpListener(UDPLISTENER_RECV_PROC *recv_proc, void *param, IP *listen_ip);
|
||||
UDPLISTENER *NewUdpListenerEx(UDPLISTENER_RECV_PROC *recv_proc, void *param, IP *listen_ip, UINT packet_type);
|
||||
void UdpListenerThread(THREAD *thread, void *param);
|
||||
void StopUdpListener(UDPLISTENER *u);
|
||||
void FreeUdpListener(UDPLISTENER *u);
|
||||
void AddPortToUdpListener(UDPLISTENER *u, UINT port);
|
||||
void DeletePortFromUdpListener(UDPLISTENER *u, UINT port);
|
||||
|
Reference in New Issue
Block a user