You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add simple UDP packet channel for easier integration
This commit introduces a simplified UDP abstraction to replace the complex
AbstractUdpSocket trait from wind-core. The new implementation provides:
- SimpleUdpPacket: Basic UDP packet structure (source, target, payload)
- SimpleUdpChannel: Bidirectional channel for packet transmission
- SimpleUdpChannelTx: Transmitter side (supports Clone)
- handle_udp_simple(): New method in TuicOutbound for easy UDP handling
Benefits:
- Much simpler API compared to AbstractUdpSocket trait
- Uses standard crossfire channels instead of custom traits
- Easier integration with existing async code
- Reduced complexity for UDP relay implementations
The implementation maintains compatibility with existing UdpStream while
providing a more ergonomic interface for UDP packet handling.
0 commit comments