Documentation ¶
Index ¶
- Constants
- type Client
- type Config
- type Conn
- func (c *Conn) Epoch() time.Time
- func (c *Conn) Metadata() *tunnel.Metadata
- func (c *Conn) Name() string
- func (c *Conn) Read(p []byte) (int, error)
- func (c *Conn) Recv() uint64
- func (c *Conn) Sent() uint64
- func (c *Conn) Tunnels() *tunnel.Tunnels
- func (c *Conn) User() statistic.User
- func (c *Conn) Write(p []byte) (int, error)
- type ForwardProxyConfig
- type PacketConn
- func (c *PacketConn) Epoch() time.Time
- func (c *PacketConn) Name() string
- func (c *PacketConn) ReadWithMetadata(p []byte) (int, *tunnel.Metadata, error)
- func (c *PacketConn) Recv() uint64
- func (c *PacketConn) Sent() uint64
- func (c *PacketConn) Tunnels() *tunnel.Tunnels
- func (c *PacketConn) User() statistic.User
- func (c *PacketConn) WriteTo(p []byte, addr net.Addr) (int, error)
- func (c *PacketConn) WriteWithMetadata(p []byte, m *tunnel.Metadata) (int, error)
- type SocksPacketConn
- func (c *SocksPacketConn) Close() error
- func (c *SocksPacketConn) Epoch() time.Time
- func (c *SocksPacketConn) Name() string
- func (c *SocksPacketConn) ReadWithMetadata(payload []byte) (int, *tunnel.Metadata, error)
- func (c *SocksPacketConn) Recv() uint64
- func (c *SocksPacketConn) Sent() uint64
- func (c *SocksPacketConn) Tunnels() *tunnel.Tunnels
- func (c *SocksPacketConn) User() statistic.User
- func (c *SocksPacketConn) WriteWithMetadata(payload []byte, metadata *tunnel.Metadata) (int, error)
- type TCPConfig
- type Tunnel
Constants ¶
View Source
const MaxPacketSize = 1024 * 8
View Source
const Name = "FREEDOM"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DialPacket ¶
type Config ¶
type Config struct { LocalHost string `json:"local_addr" yaml:"local-addr"` LocalPort int `json:"local_port" yaml:"local-port"` TCP TCPConfig `json:"tcp" yaml:"tcp"` ForwardProxy ForwardProxyConfig `json:"forward_proxy" yaml:"forward-proxy"` Interface string `json:"interface" yaml:"interface"` EnableInterfaceBind bool `json:"enable_interface_bind" yaml:"enable-interface-bind"` NameServer []string `json:"nameserver" yaml:"nameserver"` }
type ForwardProxyConfig ¶
type PacketConn ¶
func (*PacketConn) Epoch ¶
func (c *PacketConn) Epoch() time.Time
func (*PacketConn) Name ¶
func (c *PacketConn) Name() string
func (*PacketConn) ReadWithMetadata ¶
func (*PacketConn) Recv ¶
func (c *PacketConn) Recv() uint64
func (*PacketConn) Sent ¶
func (c *PacketConn) Sent() uint64
func (*PacketConn) Tunnels ¶
func (c *PacketConn) Tunnels() *tunnel.Tunnels
func (*PacketConn) User ¶
func (c *PacketConn) User() statistic.User
func (*PacketConn) WriteWithMetadata ¶
type SocksPacketConn ¶
type SocksPacketConn struct { net.PacketConn // contains filtered or unexported fields }
func (*SocksPacketConn) Close ¶
func (c *SocksPacketConn) Close() error
func (*SocksPacketConn) Epoch ¶
func (c *SocksPacketConn) Epoch() time.Time
func (*SocksPacketConn) Name ¶
func (c *SocksPacketConn) Name() string
func (*SocksPacketConn) ReadWithMetadata ¶
func (*SocksPacketConn) Recv ¶
func (c *SocksPacketConn) Recv() uint64
func (*SocksPacketConn) Sent ¶
func (c *SocksPacketConn) Sent() uint64
func (*SocksPacketConn) Tunnels ¶
func (c *SocksPacketConn) Tunnels() *tunnel.Tunnels
func (*SocksPacketConn) User ¶
func (c *SocksPacketConn) User() statistic.User
func (*SocksPacketConn) WriteWithMetadata ¶
Click to show internal directories.
Click to hide internal directories.