Comments (4)
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.
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.
@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.
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)
- Handshake Attempt Event
- Failed to send packet: System.Net.Sockets.SocketException HOT 2
- ReceivedPong doesn't consider late/not in order pong messages HOT 8
- Incorrect network messages/malformed packets could easily overwhelm the server HOT 2
- Cannot Reconnect
- Example Code from Basics doesn't yield same results HOT 1
- Trying to compile for Android HOT 2
- Accepting connection does not increase ConnectionsCount? HOT 1
- Is there a possibility to modify lidgren to support DTLS??
- [QUESTION] Thread safety HOT 5
- Unity 2019.4 LTS: calling client.Connect gives SocketException Invalid arguments immediately HOT 3
- Active forks? HOT 13
- Large unreliable message cannot be sent properly HOT 2
- Might want to lock stuff here? HOT 2
- The examples client gives error when trying to connect to server form second VS
- Unity network
- Is it possible to send and receive structs instead of classes ? HOT 1
- Is it still possible to build for Unity? HOT 3
- NetQueue concurrency HOT 2
- ICMP Destination unreachable (port unreachable) won't close connection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lidgren-network-gen3.