tcp

package
v0.0.0-...-fe898dd Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPServer

type TCPServer struct {
	URL string
	// contains filtered or unexported fields
}

TCPServer creates a new tcp server that returns a response

func NewTCPServer

func NewTCPServer(handler func(conn net.Conn)) *TCPServer

NewTCPServer creates a new TCP server from a handler

func (*TCPServer) Close

func (s *TCPServer) Close()

Close closes the TCP server

Jump to

Keyboard shortcuts

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