client

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	IP          string
	PORT        int
	Conn        net.Conn
	UseEncoding bool
	Delimiter   []byte
	BUF_SIZE    int
	Enc_func    func([]byte) []byte
	Dec_func    func([]byte) ([]byte, error)
	CONFIG      *quickproto.Config
}

func New added in v1.1.6

func New(ip string, port int, conf *quickproto.Config) *Client

func (*Client) Addr

func (c *Client) Addr() string

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) Read

func (c *Client) Read() (*quickproto.Message, error)

func (*Client) Terminate

func (c *Client) Terminate() error

func (*Client) Write

func (c *Client) Write(msg *quickproto.Message) error

Jump to

Keyboard shortcuts

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