Versions in this module Expand all Collapse all v0 v0.0.2 Jun 19, 2021 Changes in this version + func PackMessage(msg *dnsmessage.Message) (*buf.Buffer, error) + type MessageReader interface + ReadMessage func() (*buf.Buffer, error) + type MessageWriter interface + WriteMessage func(msg *buf.Buffer) error + type TCPReader struct + func NewTCPReader(reader buf.Reader) *TCPReader + func (r *TCPReader) Close() error + func (r *TCPReader) Interrupt() + func (r *TCPReader) ReadMessage() (*buf.Buffer, error) + type TCPWriter struct + func (w *TCPWriter) WriteMessage(b *buf.Buffer) error + type UDPReader struct + func (r *UDPReader) Close() error + func (r *UDPReader) ReadMessage() (*buf.Buffer, error) + type UDPWriter struct + func (w *UDPWriter) WriteMessage(b *buf.Buffer) error