Versions in this module Expand all Collapse all v0 v0.0.2 Apr 19, 2024 v0.0.1 Mar 1, 2024 Changes in this version + type TrojanConn struct + func (t *TrojanConn) ReadFrom(payload []byte) (int, net.Addr, error) + func (t *TrojanConn) ReadWithMetadata(payload []byte) (int, *common.Address, error) + func (t *TrojanConn) WriteTo(payload []byte, addr net.Addr) (int, error) + func (t *TrojanConn) WriteWithMetadata(payload []byte, addr *common.Address) (int, error) + type UDPConn struct + func (c *UDPConn) ReadWithMetadata(p []byte) (int, *common.Address, error) + func (c *UDPConn) WriteTo(p []byte, addr net.Addr) (int, error) + func (c *UDPConn) WriteWithMetadata(p []byte, adder *common.Address) (int, error)