UdpClient
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
    Posts
    773

    UdpClient

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

    Code:
    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
    Location
    India {Mumbai};
    Posts
    3,871

    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

This is a CodeGuru survey question.


Featured


HTML5 Development Center