server

package
v0.0.0-...-edd4e79 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener interface {
	Accept() (net.Conn, error)
	Close() error
	Listen() error
	Name() string
}

type Server

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

func NewServer

func NewServer(listener []Listener) *Server

func NewTCPServer

func NewTCPServer(addr *net.TCPAddr) *Server

func (*Server) Close

func (s *Server) Close() error

func (*Server) Conn

func (s *Server) Conn() (net.Conn, bool)

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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