Documentation ¶
Index ¶
- Constants
- Variables
- func Dial(addr Addr) (conn net.Conn, err error)
- func DialUDP(addr Addr) (conn net.Conn, err error)
- func NewString() string
- func Read(r io.Reader, b []byte) (n int, err error)
- func ReadFull(r io.Reader, b []byte) (n int, err error)
- func ReadFullWithTimeout(r io.Reader, b []byte, timeout int64) (n int, err error)
- func ReadWithTimeout(r io.Reader, b []byte, timeout int64) (n int, err error)
- type Addr
- type ByteReader
- func (br *ByteReader) Read(r io.Reader, b []byte) (n int, err error)
- func (br *ByteReader) ReadFull(r io.Reader, b []byte) (n int, err error)
- func (br *ByteReader) ReadFullWithTimeout(r io.Reader, b []byte, timeout int64) (n int, err error)
- func (br *ByteReader) ReadWithTimeout(r io.Reader, b []byte, timeout int64) (n int, err error)
- type Doh
- type IDCode
- type Point
- type Rule
- type UUID
Constants ¶
View Source
const ( IPV4 byte = 1 DOMAIN byte = 3 IPV6 byte = 4 )
Variables ¶
View Source
var BreakError = &breakError{}
View Source
var Err_NoCertFile = errors.New("no cert or key file")
View Source
var Err_NoUsefulPoint = errors.New("no useful point")
View Source
var Err_NotBinaryMessage = errors.New("not binary message")
View Source
var Err_NotImplement = errors.New("not implement")
View Source
var TimeoutError = &timeoutError{}
Functions ¶
func ReadFullWithTimeout ¶ added in v0.9.3
Types ¶
type Addr ¶
type Addr []byte
*
+----+-----+-------+------+----+ | ATYP | DST.ADDR | DST.PORT | +----+-----+-------+------+----+ | 1 | Variable | 2 | +----+-----+-------+------+----+
func DomainToAddr ¶
func (Addr) HostAndPort ¶
type ByteReader ¶ added in v0.9.3
type ByteReader struct {
Break bool
}
func NewByteReader ¶ added in v0.9.3
func NewByteReader() *ByteReader
func (*ByteReader) ReadFullWithTimeout ¶ added in v0.9.3
func (*ByteReader) ReadWithTimeout ¶ added in v0.9.3
type Point ¶
Click to show internal directories.
Click to hide internal directories.