outboundCommands

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelParams

type ChannelParams struct {
	Uid   int64
	Token string
}

type ClientRoutineInboundCmdClose

type ClientRoutineInboundCmdClose struct {
	ChlCtx service.IChannelContext
	Desc   string
	// contains filtered or unexported fields
}

func NewClientRoutineInboundCmdClose

func NewClientRoutineInboundCmdClose(uID int64, ChlCtx service.IChannelContext, Desc string) (this *ClientRoutineInboundCmdClose)

func (*ClientRoutineInboundCmdClose) Exec

func (closeEvent *ClientRoutineInboundCmdClose) Exec()

func (*ClientRoutineInboundCmdClose) QueueId

func (closeEvent *ClientRoutineInboundCmdClose) QueueId() int64

func (*ClientRoutineInboundCmdClose) Wait

func (closeEvent *ClientRoutineInboundCmdClose) Wait() (result interface{}, ok bool)

type ClientRoutineInboundCmdConnect

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

func NewClientRoutineInboundCmdConnect

func NewClientRoutineInboundCmdConnect(uID int64, ip string, port int, connType connector.SocketType,
	params map[string]interface{},
	connector listener.IConnector, callback inboundCommands.ICallBack) (this *ClientRoutineInboundCmdConnect)

func (*ClientRoutineInboundCmdConnect) Exec

func (upConnectEvent *ClientRoutineInboundCmdConnect) Exec()

func (*ClientRoutineInboundCmdConnect) QueueId

func (upConnectEvent *ClientRoutineInboundCmdConnect) QueueId() int64

func (*ClientRoutineInboundCmdConnect) Wait

func (upConnectEvent *ClientRoutineInboundCmdConnect) Wait() (result interface{}, ok bool)

type ClientRoutineOutboundCmdMsgSend

type ClientRoutineOutboundCmdMsgSend struct {
	Data    protocol.IProtocol
	OnClose bool // 是否在消息发送完毕后关闭连接
	PoolKey int64
	ChlCtx  service.IChannelContext
	Desc    string
}

func NewClientRoutineOutboundCmdMsgSend

func NewClientRoutineOutboundCmdMsgSend(Data protocol.IProtocol, OnClose bool, PoolKey int64, ChlCtx service.IChannelContext, Desc string) (this *ClientRoutineOutboundCmdMsgSend)

func (*ClientRoutineOutboundCmdMsgSend) Exec

func (msgSendEvent *ClientRoutineOutboundCmdMsgSend) Exec()

func (*ClientRoutineOutboundCmdMsgSend) QueueId

func (msgSendEvent *ClientRoutineOutboundCmdMsgSend) QueueId() int64

func (*ClientRoutineOutboundCmdMsgSend) Wait

func (msgSendEvent *ClientRoutineOutboundCmdMsgSend) Wait() (result interface{}, ok bool)

Jump to

Keyboard shortcuts

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