ANetworkServerChannel 类
继承
ANetworkServerChannel
继承成员
命名空间: Fantasy.Network.Interface
程序集: Fantasy.Net.dll
语法
public abstract class ANetworkServerChannel : INetworkChannel, IDisposable
构造函数
| 编辑本文 查看源代码ANetworkServerChannel(ANetwork, uint, EndPoint)
声明
protected ANetworkServerChannel(ANetwork network, uint id, EndPoint remoteEndPoint)
参数
类型 | 名称 | 描述 |
---|---|---|
ANetwork | network | |
uint | id | |
EndPoint | remoteEndPoint |
字段
| 编辑本文 查看源代码Id
获取通道的唯一标识 ID。
声明
public readonly uint Id
字段值
类型 | 描述 |
---|---|
uint |
RemoteEndPoint
获取通道的远程终端点。
声明
public readonly EndPoint RemoteEndPoint
字段值
类型 | 描述 |
---|---|
EndPoint |
属性
| 编辑本文 查看源代码IsDisposed
获取通道是否已经被释放。
声明
public bool IsDisposed { get; protected set; }
属性值
类型 | 描述 |
---|---|
bool |
Scene
获取或设置通道所属的场景。
声明
public Scene Scene { get; protected set; }
属性值
类型 | 描述 |
---|---|
Scene |
Session
获取或设置通道所属的会话。
声明
public Session Session { get; protected set; }
属性值
类型 | 描述 |
---|---|
Session |
方法
| 编辑本文 查看源代码Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
声明
public virtual void Dispose()
Send(uint, long, MemoryStreamBuffer, IMessage)
声明
public abstract void Send(uint rpcId, long routeId, MemoryStreamBuffer memoryStream, IMessage message)
参数
类型 | 名称 | 描述 |
---|---|---|
uint | rpcId | |
long | routeId | |
MemoryStreamBuffer | memoryStream | |
IMessage | message |