C# Class ET.KService

Inheritance: ET.AService
Afficher le fichier Open project: zzjfengqing/ET Class Usage Examples

Méthodes publiques

Свойство Type Description
StartTime long

Méthodes publiques

Méthode 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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

public AddToUpdateNextTime ( long time, long id ) : void
time long
id long
Résultat void

ChangeAddress() public méthode

public ChangeAddress ( long id, IPEndPoint address ) : void
id long
address IPEndPoint
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Get() protected méthode

protected Get ( long id, IPEndPoint address ) : void
id long
address IPEndPoint
Résultat void

IsDispose() public méthode

public IsDispose ( ) : bool
Résultat bool

KService() public méthode

public KService ( ET.ThreadSynchronizationContext threadSynchronizationContext, IPEndPoint ipEndPoint, ServiceType serviceType ) : System
threadSynchronizationContext ET.ThreadSynchronizationContext
ipEndPoint IPEndPoint
serviceType ServiceType
Résultat System

KService() public méthode

public KService ( ET.ThreadSynchronizationContext threadSynchronizationContext, ServiceType serviceType ) : System
threadSynchronizationContext ET.ThreadSynchronizationContext
serviceType ServiceType
Résultat System

Remove() public méthode

public Remove ( long id ) : void
id long
Résultat void

Send() protected méthode

protected Send ( long channelId, long actorId, MemoryStream stream ) : void
channelId long
actorId long
stream MemoryStream
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

StartTime public_oe property

public long StartTime
Résultat long