C# Class ET.KService

Inheritance: ET.AService
Mostra file Open project: zzjfengqing/ET Class Usage Examples

Public Properties

Property Type Description
StartTime long

Public Methods

Method Description
AddToUpdateNextTime ( long time, long id ) : void
ChangeAddress ( long id, IPEndPoint address ) : void
Dispose ( ) : void
IsDispose ( ) : bool
KService ( ET.ThreadSynchronizationContext threadSynchronizationContext, IPEndPoint ipEndPoint, ServiceType serviceType ) : System
KService ( ET.ThreadSynchronizationContext threadSynchronizationContext, ServiceType serviceType ) : System
Remove ( long id ) : void
Update ( ) : void

Protected Methods

Method Description
Get ( long id, IPEndPoint address ) : void
Send ( long channelId, long actorId, MemoryStream stream ) : void

Private Methods

Method Description
CloneAddress ( ) : IPEndPoint
Disconnect ( uint localConn, uint remoteConn, int error, IPEndPoint address, int times ) : void
Get ( long id ) : ET.KChannel
GetByLocalConn ( uint localConn ) : ET.KChannel
KService ( ) : System
KcpLog ( IntPtr bytes, int len, IntPtr kcp, IntPtr user ) : void
KcpOutput ( IntPtr bytes, int len, IntPtr kcp, IntPtr user ) : int
Recv ( ) : void
RemoveConnectTimeoutChannels ( ) : void
TimerOut ( ) : void

Method Details

AddToUpdateNextTime() public method

public AddToUpdateNextTime ( long time, long id ) : void
time long
id long
return void

ChangeAddress() public method

public ChangeAddress ( long id, IPEndPoint address ) : void
id long
address IPEndPoint
return void

Dispose() public method

public Dispose ( ) : void
return void

Get() protected method

protected Get ( long id, IPEndPoint address ) : void
id long
address IPEndPoint
return void

IsDispose() public method

public IsDispose ( ) : bool
return bool

KService() public method

public KService ( ET.ThreadSynchronizationContext threadSynchronizationContext, IPEndPoint ipEndPoint, ServiceType serviceType ) : System
threadSynchronizationContext ET.ThreadSynchronizationContext
ipEndPoint IPEndPoint
serviceType ServiceType
return System

KService() public method

public KService ( ET.ThreadSynchronizationContext threadSynchronizationContext, ServiceType serviceType ) : System
threadSynchronizationContext ET.ThreadSynchronizationContext
serviceType ServiceType
return System

Remove() public method

public Remove ( long id ) : void
id long
return void

Send() protected method

protected Send ( long channelId, long actorId, MemoryStream stream ) : void
channelId long
actorId long
stream MemoryStream
return void

Update() public method

public Update ( ) : void
return void

Property Details

StartTime public_oe property

public long StartTime
return long