This is the thing;
I receive a packet, I have to process it, and then I have to send the
response packet back to the same IP and port where the original packet
was coming from.
Having said that, and considering that there is no connection of any
kind between the two machines (needles because is UDP) there has to be a
way out there to do just that.
What do you think?
Thanks Nicholas
_____
From: Nicholas Paldino [.NET/C# MVP]
[mailto:
[email protected]]
Posted At: Wednesday, March 08, 2006 1:51 PM
Posted To: microsoft.public.dotnet.languages.csharp
Conversation: Problem gettin a RemoteEndPoint from a UDP packet
Subject: Re: Problem gettin a RemoteEndPoint from a UDP packet
Ph,
If that is the case, then I would have your clients send the IP
information as part of the information they are sending, if you need to
identify them.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi Nicholas, thanks for your answer;
Remember that this is connection-less.
I do not make any kind of connection.
I listen for incoming connections Binding to a localEndPoint. And then
using BeginReceive()
So you think that I can get the RemoteEndPoint in this way?
Thanks again
_____
From: Nicholas Paldino [.NET/C# MVP]
[mailto:
[email protected]]
Posted At: Wednesday, March 08, 2006 12:41 PM
Posted To: microsoft.public.dotnet.languages.csharp
Conversation: Problem gettin a RemoteEndPoint from a UDP packet
Subject: Re: Problem gettin a RemoteEndPoint from a UDP packet
PH,
Don't you make a call to Accept somewhere? The socket that is
returned from that call should have the RemoteEndPoint populated and you
should be able to get the information about the client from there.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi guys!
I need to get the remote EndPoint from when I receive packets when
listening in a local port in my computer.
I'm using UDP (connection-less) so I only bind the socket to my
localEndPoint, I do not Bind(), Connect() to a RemoteEndPoint.
I'm using BeginReceive() to listen and receive from connection
Asynchronously.
In this way how do I get the RemoteEndPoint?
Thanks guys!