tcpconn

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SayHello = "hello"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

func NewConn

func NewConn(netConn net.Conn) *Conn

func (*Conn) ClientSayHello

func (c *Conn) ClientSayHello() error

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) NextMessage

func (c *Conn) NextMessage(deadline ...time.Time) ([]byte, error)

func (*Conn) SayHello

func (c *Conn) SayHello() error

func (*Conn) Send

func (c *Conn) Send(data []byte, deadline ...time.Time) error

Jump to

Keyboard shortcuts

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