Documentation ¶
Index ¶
- type ClientSock
- func (self *ClientSock) Close() error
- func (self *ClientSock) EnterRoom(roomID, seatID uint8)
- func (self *ClientSock) Name() []byte
- func (self *ClientSock) Read(b []byte) (n int, err error)
- func (self *ClientSock) RoomID() uint8
- func (self *ClientSock) SeatID() uint8
- func (self *ClientSock) SockHandle() uint64
- func (self *ClientSock) Write(b []byte) (n int, err error)
- type FnClose
- type FnWrite
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) RoomID ¶
func (self *ClientSock) RoomID() uint8
func (*ClientSock) SeatID ¶
func (self *ClientSock) SeatID() uint8
func (*ClientSock) SockHandle ¶
func (self *ClientSock) SockHandle() uint64
Click to show internal directories.
Click to hide internal directories.