[TriLUG] C & sockets programming question

Jason Tower jason at cerient.net
Wed Jul 27 23:54:06 EDT 2005


an oldie but goodie, seems appropriate to this thread...

http://web.mit.edu/adorai/www/seuss-technical-writing.html

Rick DeNatale wrote:
> On 7/27/05, Michael Tharp <gxti at partiallystapled.com> wrote:
> 
> 
>>You're entirely correct, but most hosts have one default route and one
>>interface that that route can take, and in this case it's assumed that
>>is the goal - to find which. If this were a multihomed router, routes
>>change often and packets may not always go out the same interface.
>>Here it is assumed that there are fixed, single routes out each
>>interface and an additional default route which picks one and only one
>>outbound interface.
> 
> 
> Right, but because of the general case, I don't think that the socket
> has any idea of being tied to a particular interface, unless somehow
> it got bound to a particular interface with setsockoptions() and that
> generally doesn't happen.



More information about the TriLUG mailing list