CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: UdpClient

  1. #1
    Join Date
    Jul 2002


    Currently i am creating udpClient by binding it to a specific local port.
             udp = new UdpClient(LocalPort1);
    I can receive data sent to LocalPort1 by

    udp.Receive(ref remoteEndPoint)
    How can i choose to receive data from either LocalPort1 or LocalPort2, if both ports contains the data i want?? Btw, i only want to choose to receive data from LocalPort1 or LocalPort2, not the rest of the port. Both LocalPort1 and LocalPort2 are on the same IP.

  2. #2
    Join Date
    Mar 2003
    India {Mumbai};

    Re: UdpClient

    You need to create two UdpClient objects, with different ports.
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.