Code Monkey home page Code Monkey logo

Comments (4)

mattj1 avatar mattj1 commented on June 25, 2024

Not sure if this is the same issue, but I get the following crash information when calling Start()

mono_w32socket_convert_error: no translation into winsock error for (6) "Device not configured"
Stacktrace:

at <0xffffffff>
at (wrapper managed-to-native) System.Net.Sockets.Socket.IOControl_internal (intptr,int,byte[],byte[],int&) [0x0000c] in :0
at System.Net.Sockets.Socket.IOControl_internal (System.Net.Sockets.SafeSocketHandle,int,byte[],byte[],int&) [0x0000a] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/System/System.Net.Sockets/Socket.cs:2491
at System.Net.Sockets.Socket.IOControl (int,byte[],byte[]) [0x00019] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/System/System.Net.Sockets/Socket.cs:2476
at Lidgren.Network.NetPeer.BindSocket (bool) [0x000fd] in /Users/matt/projects/test2xna/Lidgren/Lidgren.Network/NetPeer.Internal.cs:137
at Lidgren.Network.NetPeer.InitializeNetwork () [0x0007c] in /Users/matt/projects/test2xna/Lidgren/Lidgren.Network/NetPeer.Internal.cs:168
at Lidgren.Network.NetPeer.Start () [0x0006a] in /Users/matt/projects/test2xna/Lidgren/Lidgren.Network/NetPeer.cs:150

from lidgren-network-gen3.

mattj1 avatar mattj1 commented on June 25, 2024

I should mention that I avoid the crash by simply commenting out the following line:

m_socket.IOControl((int)SIO_UDP_CONNRESET, new byte[] { Convert.ToByte(false) }, null);

This is on OSX, by the way.

from lidgren-network-gen3.

se5a avatar se5a commented on June 25, 2024

@mattj1 you'll get an exception if you try to start up on a device that has no network connections - found this out while on a plane in flight mode, that's not what you're seeing here is it?
I'm not sure that yours is the same problem as what I originally posted.

I've tried debugging in windows with VS and I don't get the problem there. I guess it's possible its a mono bug. I'm not sure. it's kind of annoying since I have to tell whatever it is I'm running to continue whatever I'm testing network related stuff in linux.

from lidgren-network-gen3.

GabrielJadderson avatar GabrielJadderson commented on June 25, 2024

yeah can confirm, having this issue too. Only happens in Debug mode because of the "DEBUG" preprocessor directive in LatencySimulation.cs, there are no issues in release mode and works fine.

Failed to send packet: System.Net.Sockets.SocketException (0x80004005): A socket operation was attempted to an unreachable network at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP) at Lidgren.Network.NetPeer.ActuallySendPacket(Byte[] data, Int32 numBytes, IPEndPoint target, Boolean& connectionReset) in C:\Users\lidgren-network-gen3-master\Lidgren.Network\NetPeer.LatencySimulation.cs:line 153

from lidgren-network-gen3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.