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 (m *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, streamSettings *internet.MemoryStreamConfig) (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,proto3" json:"header_settings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) GetHeaderSettings ¶
func (m *Config) GetHeaderSettings() *serial.TypedMessage
func (*Config) XXX_Marshal ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener is an internet.Listener that listens for TCP connections.
Click to show internal directories.
Click to hide internal directories.