-
May 11th, 2010, 12:58 AM
#1
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.
-
May 11th, 2010, 01:48 PM
#2
Re: UdpClient
You need to create two UdpClient objects, with different ports.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|