clientsock

package
Version: v0.0.0-...-badc9a6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSock

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

func New

func New(handle uint64, fnWrite FnWrite, fnClose FnClose, cliChan chan<- *MsgNode) *ClientSock

func (*ClientSock) Close

func (self *ClientSock) Close() error

func (*ClientSock) EnterRoom

func (self *ClientSock) EnterRoom(roomID, seatID uint8)

func (*ClientSock) Name

func (self *ClientSock) Name() []byte

func (*ClientSock) Read

func (self *ClientSock) Read(b []byte) (n int, err error)

func (*ClientSock) RoomID

func (self *ClientSock) RoomID() uint8

func (*ClientSock) SeatID

func (self *ClientSock) SeatID() uint8

func (*ClientSock) SockHandle

func (self *ClientSock) SockHandle() uint64

func (*ClientSock) Write

func (self *ClientSock) Write(b []byte) (n int, err error)

type FnClose

type FnClose = func() error

type FnWrite

type FnWrite = func(b []byte) (n int, err error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL