adapter

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	HandleTCP(net.Conn)
	HandleUDP(*stack.Stack, stack.TransportEndpointID, *stack.PacketBuffer)
}

Handler is a TCP/UDP connection handler that implements HandleTCPConn and HandleUDPConn methods.

type TCPHandleFunc

type TCPHandleFunc func(c net.Conn)

TCPHandleFunc handles incoming TCP connection.

type UDPHandleFunc

type UDPHandleFunc func(stack *stack.Stack, id stack.TransportEndpointID, pkt *stack.PacketBuffer)

UDPHandleFunc handles incoming UDP connection.

Jump to

Keyboard shortcuts

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