Documentation
¶
Index ¶
- Variables
- type Conn
- func (conn *Conn) Close() error
- func (conn *Conn) LocalAddr() net.Addr
- func (conn *Conn) Read(b []byte) (int, error)
- func (conn *Conn) ReadFrom(r io.Reader) (n int64, err error)
- func (conn *Conn) RemoteAddr() net.Addr
- func (conn *Conn) SetDeadline(t time.Time) error
- func (conn *Conn) SetReadDeadline(t time.Time) error
- func (conn *Conn) SetWriteDeadline(t time.Time) error
- func (conn *Conn) Write(b []byte) (int, error)
- func (conn *Conn) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultFirstFragmentLen = 4
DefaultFirstFragmentLen ...
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn remote: real server; local: relay
func (*Conn) ReadFrom ¶ added in v1.0.1
ReadFrom when client want to send to server, detect and split.
func (*Conn) RemoteAddr ¶ added in v1.0.1
RemoteAddr returns the remote network address.
func (*Conn) SetDeadline ¶ added in v1.0.1
SetDeadline sets the read and write deadlines associated with the connection.
func (*Conn) SetReadDeadline ¶ added in v1.0.1
SetReadDeadline sets the deadline for future Read calls.
func (*Conn) SetWriteDeadline ¶ added in v1.0.1
SetWriteDeadline sets the deadline for future Write calls.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package main provides the main entry point for terasu.
|
Package main provides the main entry point for terasu. |
|
Package dns with DoT/DoH supports
|
Package dns with DoT/DoH supports |
|
Package http is a wrapper around the standard http library with enhanced DNS resolution and TLS handling capabilities.
|
Package http is a wrapper around the standard http library with enhanced DNS resolution and TLS handling capabilities. |
|
Package http2 is the same as the standard http lib with HTTP2 client support
|
Package http2 is the same as the standard http lib with HTTP2 client support |
|
Package http3 is the same as the standard http lib with HTTP3 client support
|
Package http3 is the same as the standard http lib with HTTP3 client support |
|
Package ip contains IP-related configs
|
Package ip contains IP-related configs |
Click to show internal directories.
Click to hide internal directories.