Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Socket.ReceiveFromAsync - Sender EndPoint doesn't work

$
0
0
Hello,

For my next online game, I'm developing my network logic out of Unity (as the servers won't be Unity-based and I want to re-use this work on non-Unity project). In my Visual Studio test project everything work perfectly, but I have a problem when calling my DLL from Unity :

Code (csharp):
  1.  
  2. private void ReceiveFunction(object sender, SocketAsyncEventArgs e)
  3. {
  4.     // UDP error -> Event
  5.     if (e.SocketError != SocketError.Success || e.BytesTransferred == 0)
  6.     {
  7.         if (Server.Crash != null)...
Socket.ReceiveFromAsync - Sender EndPoint doesn't work

Viewing all articles
Browse latest Browse all 1466670

Trending Articles