[usocket-devel] bind interface?

Chun Tian (binghe) binghe.lisp at gmail.com
Fri Jul 25 19:30:45 UTC 2008


>
> "Erik Huelsmann" <ehuels at gmail.com> writes:
>> On the CMUCL development list, Chun Tian is lobbying for implementing
>> this feature in it, so usocket can use it. However, he's meeting some
>> resistance, because people can't envision the use-case - and as a
>> matter of fact, so have I. Could you describe yours to us, so we
>> understand what it is that you're trying to do?
>
> Sure thing.  Before I do, I will mention that this is a commonly
> available in many tools, ssh -b is one example.
>
> The situation I currently have is a machine with two different
> ethernet ports and two different IP addresses.  Each of these IP
> addresses routes to the Internet through different gateways.  I also
> have two services (call them A and B) on the Internet that I access
> from this machine.

Nice. And I said this twice on cmucl-imp...

>
>
> Due to factors beyond my control, service A is only authorized from IP
> address #1 and service B is only authorized from IP address #2.
>
> Binding to different local addresses lets me access both services from
> the same application.  This is what I am doing now with the LispWorks
> api.
>
> Cheers,
> Chris Dean




More information about the usocket-devel mailing list