tcp

package
v0.0.0-...-7ac3615 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: BSD-3-Clause-Clear Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPClient

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

func (*TCPClient) Close

func (t *TCPClient) Close() error

func (*TCPClient) Connect

func (t *TCPClient) Connect(ipandport string) bool

func (*TCPClient) Send

func (t *TCPClient) Send(d []byte)

type TCPConnection

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

func NewTCPConnection

func NewTCPConnection() *TCPConnection

func (*TCPConnection) Close

func (tc *TCPConnection) Close() error

func (*TCPConnection) Init

func (tc *TCPConnection) Init(p *TCPServer, c net.Conn)

func (*TCPConnection) Key

func (tc *TCPConnection) Key() string

func (*TCPConnection) Send

func (tc *TCPConnection) Send(d []byte)

type TCPServer

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

func (*TCPServer) Close

func (s *TCPServer) Close() error

func (*TCPServer) Init

func (s *TCPServer) Init(ipandport string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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