cs

package module
v0.0.0-...-6e6a912 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuicConfig

type QuicConfig quic.Config

type Server

type Server struct {
	*cs.Server
}

func NewServer

func NewServer(
	tlsConfig *tls.Config,
	quicConfig *QuicConfig,
	pktConn net.PacketConn,
	transport *transport.ServerTransport,
	sendBPS uint64,
	recvBPS uint64,
	disableUDP bool,
	aclEngine *acl.Engine,
	connectFunc cs.ConnectFunc,
	disconnectFunc cs.DisconnectFunc,
	tcpRequestFunc cs.TCPRequestFunc,
	tcpErrorFunc cs.TCPErrorFunc,
	udpRequestFunc cs.UDPRequestFunc,
	udpErrorFunc cs.UDPErrorFunc,
	trafficCounter cs.TrafficCounter) (Server, error)

Jump to

Keyboard shortcuts

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