Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Socket.ReceiveFromAsync result with endpoint 0.0.0.0:0 (Unity 5.3.1f1 Personal)

$
0
0
I am importing a code that uses SocketAsyncEventArgs into my project, using UDP. The socket is of datagram type

Code (csharp):
  1. m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
Sending a message with an SendToAsync call seems to be working properly, however, ReceiveFromAsync "returns" with the endpoint in the "receival" SocketAsyncEventArgs as the address 0.0.0.0:0.

I am using a "server" socket and a "client" socket for testing, running one on Unity...

Socket.ReceiveFromAsync result with endpoint 0.0.0.0:0 (Unity 5.3.1f1 Personal)

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>