UdpCloseFn typedef

UdpCloseFn = Future<void> Function(int bindingId)

Tears down the Go-side UDP bridge for the given opaque binding id (from the bind response). A datagram socketpair peer-close does not wake the Go bridge's reader, so the binding must signal Go explicitly on close, or the port + goroutines + threads leak.

Implementation

typedef UdpCloseFn = Future<void> Function(int bindingId);