tcp

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback = func()

type ErrorConsumer

type ErrorConsumer = func(e error)

type PeerConsumer

type PeerConsumer = func(conn *network.ManagedConnection)

type Server

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

func NewServer

func NewServer() *Server

func (*Server) GetSocket

func (this *Server) GetSocket() net.Listener

func (*Server) Listen

func (this *Server) Listen(bindAddress string, port int) *Server

func (*Server) Shutdown

func (this *Server) Shutdown()

Jump to

Keyboard shortcuts

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