[plt-scheme] Unix domain sockets

From: John Clements (clements at brinckerhoff.org)
Date: Thu Mar 15 03:28:21 EDT 2007

On Mar 14, 2007, at 10:25 PM, Jamie Briggs wrote:

> On 14-Mar-07, at 5:04 PM, Robby Findler wrote:
>> While it doesn't support the full, complicated sockets interface, it
>> does support network communication; would that work for you?
> The problem with using ordinary sockets is that socket numbers are
> a very limited global "namespace".  This is workable if you are  
> running one server
> on a box and it has a known port number associated with it.  But if  
> you are
> building process "groups" on a machine you might want to start any  
> number of
> messaging hubs to service different groups.
> This means having to choose and check a new port number to see if  
> it is in use every
> time a new messaging hub is started.  Using Unix domain sockets you  
> avoid the problem
> as the sockets are identified with filesystem paths rather than  
> port numbers.  The only
> downside is that the system isn't usable under Windows without  
> something like
> Cygwin but for my application it doesn't matter.

I conjecture that this might be a fairly straightforward application  
of Eli's ffi library, possibly more work if you want a nice clean  
"scheme-like" interface. It might make a nice PLaneT package, too!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2484 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20070315/77919d1b/attachment.p7s>

Posted on the users mailing list.