Documentation ¶
Index ¶
- Constants
- func Dial(ctx context.Context, dest net.Destination) (internet.Connection, error)
- func GetOriginalDestination(conn internet.Connection) (net.Destination, error)
- func ListenTCP(ctx context.Context, address net.Address, port net.Port, ...) (internet.Listener, error)
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetHeaderSettings() *serial.TypedMessage
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type Listener
Constants ¶
View Source
const SO_ORIGINAL_DST = 80
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial(ctx context.Context, dest net.Destination) (internet.Connection, error)
Dial dials a new TCP connection to the given destination.
func GetOriginalDestination ¶
func GetOriginalDestination(conn internet.Connection) (net.Destination, error)
Types ¶
type Config ¶
type Config struct { HeaderSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=header_settings,json=headerSettings" json:"header_settings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetHeaderSettings ¶
func (m *Config) GetHeaderSettings() *serial.TypedMessage
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.