tcp

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener added in v0.0.25

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

func (*Listener) Accept added in v0.0.25

func (l *Listener) Accept(ctx context.Context) (carrier internal.ConnCarrier, err error)

func (*Listener) Endpoint added in v0.0.25

func (l *Listener) Endpoint() (string, error)

func (*Listener) Start added in v0.0.25

func (l *Listener) Start(ctx context.Context) error

func (*Listener) Stop added in v0.0.25

func (l *Listener) Stop(ctx context.Context) error

type Server

type Server struct {
	*internal.BaseServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(bind string, svc xnet.Service, opts ...server.Option) (*Server, error)

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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