nio_client

package
v0.2.64 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NioClient

type NioClient struct {
	Timeout    time.Duration
	Secure     bool
	EnablePing bool
	// contains filtered or unexported fields
}

func NewNioClient

func NewNioClient(host string, port int) (instance *NioClient)

func (*NioClient) Close

func (instance *NioClient) Close() (err error)

func (*NioClient) GetUUID

func (instance *NioClient) GetUUID() string

func (*NioClient) IsOpen

func (instance *NioClient) IsOpen() bool

func (*NioClient) Join

func (instance *NioClient) Join()

Join Wait is stopped

func (*NioClient) OffConnect

func (instance *NioClient) OffConnect()

func (*NioClient) OffDisconnect

func (instance *NioClient) OffDisconnect()

func (*NioClient) OnConnect

func (instance *NioClient) OnConnect(callback func(e *gg_events.Event))

func (*NioClient) OnDisconnect

func (instance *NioClient) OnDisconnect(callback func(e *gg_events.Event))

func (*NioClient) Open

func (instance *NioClient) Open() (err error)

func (*NioClient) Send

func (instance *NioClient) Send(data interface{}) (*nio_commons.NioMessage, error)

func (*NioClient) SendId

func (instance *NioClient) SendId(name, description string) (*nio_commons.NioMessage, error)

Jump to

Keyboard shortcuts

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