gdnet

package
v0.0.0-...-7424bbb Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 8 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 {
	Processor   network.Processor
	OnConnected func()
	OnClose     func()
	// contains filtered or unexported fields
}

Client Client

func NewClient

func NewClient(p network.Processor, netAddr string) *Client

NewClient NewClient

func (*Client) Addr

func (its *Client) Addr() string

Addr Addr

func (*Client) Close

func (its *Client) Close()

Close Close

func (*Client) Connect

func (its *Client) Connect(url string, autoReconnect bool) error

Connect Connect

func (*Client) NetAddr

func (its *Client) NetAddr() string

NetAddr NetAddr

func (*Client) Send

func (its *Client) Send(id int32, msg interface{})

Send Send

Jump to

Keyboard shortcuts

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