tcp

package
v0.0.0-...-f9e80be Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is just a basic tcp server

func NewServer

func NewServer(port int, debug bool, callback func(net.Conn, []byte, int)) *Server

NewServer Creates a new server

func (*Server) Listen

func (s *Server) Listen()

Listen starts the server

func (*Server) Stop

func (s *Server) Stop()

Stop closes the server

Jump to

Keyboard shortcuts

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