Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [UDP-Socket] find out the src-Port while Sending  (Read 2143 times)

0 Members and 1 Guest are viewing this topic.

helo

  • Newbie
  • *
  • Posts: 14
    • View Profile
[UDP-Socket] find out the src-Port while Sending
« on: November 26, 2010, 12:35:45 am »
Hi
I´m trying to make a programm sending an info-query to an server and handle the answer, but the server sends his response to the port the query came from. Therefore I must know which port was used for the request. Is this possible?

helo

  • Newbie
  • *
  • Posts: 14
    • View Profile
[UDP-Socket] find out the src-Port while Sending
« Reply #1 on: November 26, 2010, 07:49:48 am »
I think I found a solution myself: Bind the Sending Socket before Sending.

 

anything