Fantasy
搜索结果

    显示/隐藏目录

    ANetworkServerChannel 类

    继承
    object
    ANetworkServerChannel
    KCPServerNetworkChannel
    TCPServerNetworkChannel
    WebSocketServerNetworkChannel
    实现
    INetworkChannel
    IDisposable
    继承成员
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: 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

    实现

    INetworkChannel
    IDisposable

    扩展方法

    JsonHelper.ToJson<T>(T)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX