Documentation
¶
Overview ¶
Package server UDP server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Server ¶
type Server struct {
Terminate chan bool
Config *config.Server
Addr *net.UDPAddr
Conn *net.UDPConn
ConnectionPool map[uint32]Connection
PassUpstream *upstream.Upstream
PassHost *net.UDPAddr
PassPort int
// contains filtered or unexported fields
}
func (*Server) HandleClient ¶
func (*Server) ListenTarget ¶
func (m *Server) ListenTarget(hash uint32, c Connection)
ListenTarget listens to incoming data returned by a target and bounces it back to the client
func (*Server) LoadBalanceUDP ¶
func (m *Server) LoadBalanceUDP()
Click to show internal directories.
Click to hide internal directories.