FreeRDP
Loading...
Searching...
No Matches
rdpUdpPeerHooks Struct Reference

Callbacks from FreeRDP_UdpPeerCallbacks and internal hooks. Executed on the thread running the freerdp_peer check; OfferTunnel is called during connection setup. More...

#include <udplistener.h>

Data Fields

psPeerUdpLinkChanged LinkChanged
psPeerUdpWriteUnblocked WriteUnblocked
WINPR_ATTR_NODISCARD BOOL(* OfferTunnel )(void *custom, rdpUdpFlow *flow, const BYTE cookieHash[32])
BOOL ManualWorker

Detailed Description

Callbacks from FreeRDP_UdpPeerCallbacks and internal hooks. Executed on the thread running the freerdp_peer check; OfferTunnel is called during connection setup.

Definition at line 81 of file udplistener.h.

Field Documentation

◆ LinkChanged

psPeerUdpLinkChanged rdpUdpPeerHooks::LinkChanged

Definition at line 83 of file udplistener.h.

◆ ManualWorker

BOOL rdpUdpPeerHooks::ManualWorker

If TRUE, no worker thread is created. The caller must manually drive the tunnel using freerdp_udp_flow_get_event(), freerdp_udp_flow_get_timeout(), and freerdp_udp_flow_check() to handle ACKs and retransmissions. If driven on a non-peer thread, stop before LinkChanged returns FREERDP_UDP_LINK_NONE.

Definition at line 99 of file udplistener.h.

◆ OfferTunnel

WINPR_ATTR_NODISCARD BOOL(* rdpUdpPeerHooks::OfferTunnel) (void *custom, rdpUdpFlow *flow, const BYTE cookieHash[32])

Called before offering the tunnel. Route datagrams from the client (identified by cookieHash in SYN) to flow. This hook must not return until routing is established. If not provided, the process-wide listener handles routing (single-process only). flow is owned by the peer and remains valid until LinkChanged reports FREERDP_UDP_LINK_NONE. Call peer's Disconnect before freeing the peer context on the peer's check thread.

Returns
FALSE to remain on TCP. The peer will free the flow without calling LinkChanged; cease all flow usage before returning FALSE.

Definition at line 93 of file udplistener.h.

◆ WriteUnblocked

psPeerUdpWriteUnblocked rdpUdpPeerHooks::WriteUnblocked

Definition at line 84 of file udplistener.h.


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