Re: determining if connection is local
Re: determining if connection is local
- Subject: Re: determining if connection is local
- From: "Matt Slot" <email@hidden>
- Date: Fri, 26 Sep 2003 06:04:38 -0400
Quinn (email@hidden) wrote:
>
That's weird. Before I suggested testing just for 127.0.0.1 I
>
actually wrote a little test program to check my assumptions. Here's
>
the code:
>
>
I ran this under GDB and used another Terminal window to connect to
>
it using "telnet localhost 12345". The address returned by accept
>
was 127.0.0.1.
Correct, but I don't think the same is true if you connect to a listening
endpoint on the same host by IP address or by hostname.
Matt
+--------------------------+-----------------------------------+
| Matt Slot | Ambrosia Software, Inc. |
| Bitwise Operator |
http://www.AmbrosiaSW.com/ |
+--------------------------+-----------------------------------+
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.