core: v2ray.com/core/common/protocol/dns Index | Files

package dns

import "v2ray.com/core/common/protocol/dns"

Index

Package Files

errors.generated.go io.go

func PackMessage Uses

func PackMessage(msg *dnsmessage.Message) (*buf.Buffer, error)

type MessageReader Uses

type MessageReader interface {
    ReadMessage() (*buf.Buffer, error)
}

type MessageWriter Uses

type MessageWriter interface {
    WriteMessage(msg *buf.Buffer) error
}

type TCPReader Uses

type TCPReader struct {
    // contains filtered or unexported fields
}

func NewTCPReader Uses

func NewTCPReader(reader buf.Reader) *TCPReader

func (*TCPReader) Close Uses

func (r *TCPReader) Close() error

func (*TCPReader) Interrupt Uses

func (r *TCPReader) Interrupt()

func (*TCPReader) ReadMessage Uses

func (r *TCPReader) ReadMessage() (*buf.Buffer, error)

type TCPWriter Uses

type TCPWriter struct {
    buf.Writer
}

func (*TCPWriter) WriteMessage Uses

func (w *TCPWriter) WriteMessage(b *buf.Buffer) error

type UDPReader Uses

type UDPReader struct {
    buf.Reader
    // contains filtered or unexported fields
}

func (*UDPReader) Close Uses

func (r *UDPReader) Close() error

Close implements common.Closable.

func (*UDPReader) ReadMessage Uses

func (r *UDPReader) ReadMessage() (*buf.Buffer, error)

ReadMessage implements MessageReader.

type UDPWriter Uses

type UDPWriter struct {
    buf.Writer
}

func (*UDPWriter) WriteMessage Uses

func (w *UDPWriter) WriteMessage(b *buf.Buffer) error

Package dns imports 7 packages (graph) and is imported by 4 packages. Updated 2019-03-31. Refresh now. Tools for package owners.