I am importing a code that uses SocketAsyncEventArgs into my project, using UDP. The socket is of datagram type
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)
Code (csharp):
- m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
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)