[gambit-list] Gamsock now up on the Dumping Ground

Mikael mikael.rcv at gmail.com
Wed Oct 24 22:27:08 EDT 2012


Hi Jeff!

Great!

This is useful in several ways.

One usecase when it's quite critical is if implementing networked
Gambit-based applications that do not use Gambit's runtime library.


Some side reflections on Gambit UDP/IPv6 support and uses for direct access
to socket routines like your library provides and cooperation between that
and Gambit's IO system:

I believe there is some UDP support implemented into Gambit's ports system,
Marc mentioned he has preliminary such in this email
https://mercure.iro.umontreal.ca/pipermail/gambit-list/2006-July/000769.html .
I'd be interested in getting my hands on this someday as it supposedly is
integrated with the Gambit scheduler, which is useful for several things.

I thought I remembered there's an IPv6 patch for Gambit's builtin IO but
can't find any reference to it right now. In all cases it would be a very
worthy thing to do, to get UDP and hybrid-IPv4-v6 support into Gambit.

There are ways to wrap OS sockets into Gambit ports and the other way
around (for TCP only?). Sometimes this is useful. Could be explored by a
library.

For instance, to make a Unix socket server and client Gambit port
implementation. If of interest to anyone, I have code for one or two
routines in this area to share.

Or, doing accept:s with your library in such a way that the IP of the other
host is registered and retained by the Gambit application, and then
otherwise keeping ordinary Gambit TCP port behavior for the accepted
connection.

Best regards,
Mikael

2012/10/25 Jeff Read <bitwize at gmail.com>

> All,
>
> The socket library I've been working off-and-on on for some time is now
> listed on the Dumping Ground. Gamsock is a POSIX socket library with an API
> similar to the Scsh socket API. It makes applications possible with Gambit
> that aren't possible with its built in TCP port API, including applications
> that use UDP, or Unix-domain or IPv6 sockets.
>
> It's available on GitHub: https://github.com/bitwize/gamsock
>
> Happy socket hacking!
>
> --Jeff
>
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20121025/7b008c9d/attachment.htm>


More information about the Gambit-list mailing list