Skip to content

Udp Client Demo Exception #17

Description

@bobdog1986

First day try Mina.NET , try Udp Client Demo.
But throw exception:
mina-udpclient

I found 62line in code = "read = socket.EndReceiveFrom(ar, ref remoteEP);"

    private void ReceiveCallback(IAsyncResult ar)
    {
        System.Net.Sockets.Socket socket = (System.Net.Sockets.Socket)ar.AsyncState;
        Int32 read = 0;
        try
        {
            EndPoint remoteEP = Socket.RemoteEndPoint; 
            read = socket.EndReceiveFrom(ar, ref remoteEP);
        }
        catch (ObjectDisposedException)
        {
            // do nothing
            return;
        }
        catch (Exception ex)
        {
            EndReceive(ex);
            return;
        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions