Thanks a bunch! That is just what I was looking for !
Best regards Jakob
Bryan Olson skrev:
> [EMAIL PROTECTED] wrote:
> > Hi. How can I determin the hwaddr or ipaddress of the networkinterface
> > that is used in an outgoing connection?
>
> Is sock_object.getsockname() enough?
>
> http://do
To your question on casting long to short. This is how:
a=1234L # long
b=int(a) # int (short)
John Machin skrev:
> SpreadTooThin wrote:
> > Basically I think the problem is in converting from a 32 bit integer to
> > a 16 bit integer.
> >
> > I have two arrays:
> > import array
> >
> > a
Hi. How can I determin the hwaddr or ipaddress of the networkinterface
that is used in an outgoing connection? I need a kind of traceroute in
python or lowlevel socket function that can help me find out which one
of my hosts networkinterfaces that is actually used or going to be used
to reach a cer