tcp

package
v0.0.51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BUFFER_SIZE = 32 * 1024 // 32KB

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnWriter

type ConnWriter struct {
	Conn   net.Conn
	Writer *bufio.Writer
}

func Dial

func Dial(udpAddrPort netip.AddrPort) (*ConnWriter, error)

type TCPService

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

func NewTCPService

func NewTCPService(udpAddr *net.UDPAddr, log logger.Logger) (*TCPService, error)

NewTCPService creates a listner that accepts TCP connections. The UDP port is incremented by one to get the TCP port.

func (*TCPService) Messages

func (t *TCPService) Messages() <-chan *types.Msg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL