routineCmdMakerImpl

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInboundEventMakerImpl

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

func NewClientInboundEventMakerImpl

func NewClientInboundEventMakerImpl(connector listener.IConnector, callback routineCommands.ICallBack) (impl *ClientInboundEventMakerImpl)

func (*ClientInboundEventMakerImpl) MakeActiveEvent

func (impl *ClientInboundEventMakerImpl) MakeActiveEvent(routineId int64, Ctx service.IChannelContext) executor.Event

新连接

func (*ClientInboundEventMakerImpl) MakeInActiveEvent

func (impl *ClientInboundEventMakerImpl) MakeInActiveEvent(routineId int64, Ctx service.IChannelContext) executor.Event

连接中断

func (*ClientInboundEventMakerImpl) MakeMessageReceivedEvent

func (impl *ClientInboundEventMakerImpl) MakeMessageReceivedEvent(routineId int64, Data protocol.IProtocol, Ctx service.IChannelContext) executor.Event

收到消息包

type ClientOutboundEventMaker

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

func NewClientOutboundEventMaker

func NewClientOutboundEventMaker(connector listener.IConnector) (impl *ClientOutboundEventMaker)

func (*ClientOutboundEventMaker) MakeCloseEvent

func (impl *ClientOutboundEventMaker) MakeCloseEvent(routineId int64, uID int64, Desc string) executor.Event

func (*ClientOutboundEventMaker) MakeConnectEvent

func (impl *ClientOutboundEventMaker) MakeConnectEvent(routineId int64, ip string, port int, uID int64, params map[string]interface{}) executor.Event

func (*ClientOutboundEventMaker) MakeSendMessageEvent

func (impl *ClientOutboundEventMaker) MakeSendMessageEvent(routineId int64, Data protocol.IProtocol, OnClose bool, PoolKey int64, ChlCtx service.IChannelContext, Desc string) executor.Event

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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