Fantasy
搜索结果

    显示/隐藏目录

    TCPClientNetwork 类

    继承
    object
    Entity
    ANetwork
    AClientNetwork
    TCPClientNetwork
    实现
    IEntity
    IPool
    INetworkChannel
    IDisposable
    继承成员
    AClientNetwork.Session
    ANetwork.NetworkType
    ANetwork.NetworkTarget
    ANetwork.NetworkProtocolType
    ANetwork.NetworkMessageScheduler
    ANetwork.RentMemoryStream(int)
    ANetwork.ReturnMemoryStream(MemoryStreamBuffer)
    ANetwork.RentOuterPackInfo()
    ANetwork.ReturnOuterPackInfo(OuterPackInfo)
    ANetwork.RentInnerPackInfo()
    ANetwork.ReturnInnerPackInfo(InnerPackInfo)
    Entity.Id
    Entity.RunTimeId
    Entity.IsDisposed
    Entity.Scene
    Entity.Parent
    Entity.Type
    Entity.GetParent<T>()
    Entity.Create<T>(Scene, bool, bool)
    Entity.Create<T>(Scene, long, bool, bool)
    Entity.AddComponent<T>(bool)
    Entity.AddComponent<T>(long, bool)
    Entity.AddComponent(Entity)
    Entity.AddComponent<T>(T)
    Entity.GetComponent<T>()
    Entity.GetComponent(Type)
    Entity.GetComponent<T>(long)
    Entity.GetOrAddComponent<T>(bool)
    Entity.RemoveComponent<T>(bool)
    Entity.RemoveComponent<T>(long, bool)
    Entity.RemoveComponent(Entity, bool)
    Entity.RemoveComponent<T>(T, bool)
    Entity.Deserialize(Scene, bool)
    Entity.ForEachSingleCollection
    Entity.ForEachTransfer
    Entity.ForEachMultiEntity
    Entity.ForEachEntity
    Entity.IsPool()
    Entity.SetIsPool(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.Network.TCP
    程序集: Fantasy.Net.dll
    语法
    public sealed class TCPClientNetwork : AClientNetwork, IEntity, IPool, INetworkChannel, IDisposable

    属性

    | 编辑本文 查看源代码

    ChannelId

    声明
    public uint ChannelId { get; }
    属性值
    类型 描述
    uint

    方法

    | 编辑本文 查看源代码

    Connect(string, Action, Action, Action, bool, int)

    连接到远程服务器。

    声明
    public override Session Connect(string remoteAddress, Action onConnectComplete, Action onConnectFail, Action onConnectDisconnect, bool isHttps, int connectTimeout = 5000)
    参数
    类型 名称 描述
    string remoteAddress

    远程服务器的终端点。

    Action onConnectComplete

    连接成功时的回调。

    Action onConnectFail

    连接失败时的回调。

    Action onConnectDisconnect

    连接断开时的回调。

    bool isHttps
    int connectTimeout

    连接超时时间,单位:毫秒。

    返回
    类型 描述
    Session

    连接的会话。

    重写
    AClientNetwork.Connect(string, Action, Action, Action, bool, int)
    | 编辑本文 查看源代码

    Dispose()

    销毁当前实体,销毁后会自动销毁当前实体下的所有实体。

    声明
    public override void Dispose()
    重写
    AClientNetwork.Dispose()
    | 编辑本文 查看源代码

    Initialize(NetworkTarget)

    声明
    public void Initialize(NetworkTarget networkTarget)
    参数
    类型 名称 描述
    NetworkTarget networkTarget
    | 编辑本文 查看源代码

    RemoveChannel(uint)

    声明
    public override void RemoveChannel(uint channelId)
    参数
    类型 名称 描述
    uint channelId
    重写
    ANetwork.RemoveChannel(uint)
    | 编辑本文 查看源代码

    Send(uint, long, MemoryStreamBuffer, IMessage)

    声明
    public override void Send(uint rpcId, long routeId, MemoryStreamBuffer memoryStream, IMessage message)
    参数
    类型 名称 描述
    uint rpcId
    long routeId
    MemoryStreamBuffer memoryStream
    IMessage message
    重写
    AClientNetwork.Send(uint, long, MemoryStreamBuffer, IMessage)

    实现

    IEntity
    IPool
    INetworkChannel
    IDisposable

    扩展方法

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