I imagine most groups will ask this question at some point, so here it is.  Use 
findRouteEntry from routetable.c first to find your interface number, then use 
that number in findInterfaceIP from mtu.c to get the source address.  As for 
the port I believe it is your choice.  This is not necessarily the only 
solution, so if you have it working another way (other than hardcoding), there 
is no need to change it.


-----Original Message-----
From: Xi Chen 
Sent: October 27, 2009 10:38 AM
To: Daniel Ng, Mr
Subject: RE: UDP programming

Hi Daniel,

I understand when we process the UDP packet, we can get the source IP and port 
from the IP header, but what about when we send the UDP packet? Do you know 
what method to call to get those information?



gini mailing list

Reply via email to