server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 7 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 {
	Nids [256]common.Nid

	Nothing *common.Nothing
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config *common.Config) (s *Server, err error)

func (*Server) AcceptRequest

func (s *Server) AcceptRequest(conn net.Conn) ([]byte, error)

func (*Server) ReadRequest

func (s *Server) ReadRequest(conn net.Conn) (common.Nid, []byte, error)

func (*Server) Start

func (s *Server) Start()

func (*Server) UeqNid

func (s *Server) UeqNid()

func (*Server) VerifyNid

func (s *Server) VerifyNid(nid common.Nid) error

type VerifyNid

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

func NewVerifyNid

func NewVerifyNid(n common.Nid) *VerifyNid

Jump to

Keyboard shortcuts

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