Skip to content

Throw an error when switching networks. But why hasn't ping been working #58

@jiangjiali

Description

@jiangjiali

Error: System.Net.Sockets.SocketException (0x80004005): Network is unreachable
at System.Net.Sockets.Socket.Send (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at Fantasy.KCPClientNetwork.Output (System.Byte[] bytes, System.Int32 count) [0x00000] in <00000000000000000000000000000000>:0
at kcp2k.Kcp.FlushBuffer (System.Int32 size) [0x00000] in <00000000000000000000000000000000>:0
at kcp2k.Kcp.Flush () [0x00000] in <00000000000000000000000000000000>:0
at kcp2k.Kcp.Update (System.UInt32 currentTimeMilliSeconds) [0x00000] in <00000000000000000000000000000000>:0
at Fantasy.KCPClientNetwork.KcpUpdate () [0x00000] in <00000000000000000000000000000000>:0
at Fantasy.KCPClientNetwork.Update () [0x00000] in <00000000000000000000000000000000>:0
at Fantasy.NetworkThread.Update () [0x00000] in <00000000000000000000000000000000>:0

System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
Fantasy.UnityLog:Error(String)
Fantasy.Log:Error(Exception)
Fantasy.KCPClientNetwork:Output(Byte[], Int32)
kcp2k.Kcp:FlushBuffer(Int32)
kcp2k.Kcp:Flush()
kcp2k.Kcp:Update(UInt32)
Fantasy.KCPClientNetwork:KcpUpdate()
Fantasy.KCPClientNetwork:Update()
Fantasy.NetworkThread:Update()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions