[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #502: in spiffy, make tcp-addresses configurable
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #502: in spiffy, make tcp-addresses configurable |
Date: |
Mon, 14 Feb 2011 03:25:31 -0000 |
#502: in spiffy, make tcp-addresses configurable
-------------------------+--------------------------------------------------
Reporter: zbigniew | Owner: sjamaan
Type: enhancement | Status: new
Priority: minor | Milestone: 4.7.0
Component: unknown | Version: 4.6.x
Keywords: yep |
-------------------------+--------------------------------------------------
spiffy has only one dependency on the core tcp unit -- {{{tcp-
addresses}}}. Both the listen procedure and the accept procedure can be
passed to {{{start-server}}} via keywords, but the procedure used to
resolve the local and remote addresses from an input port cannot. By
making {{{tcp-addresses}}} configurable in this manner, dirty and
unscalable hack though it be, spiffy can be used with the tcp6 egg like
so:
{{{
(use tcp6)
(start-server accept: tcp-accept listen: tcp-listen addresses: tcp-
addresses)
}}}
Attached is one possible implementation. Interestingly, you could now
remove the ssl-specific addresses code (essentially: {{{(tcp-addresses
(ssl-port->tcp-port p))}}}) from spiffy and move it into, e.g. {{{ssl-
addresses}}} in the openssl egg, but this is not really practical.
--
Ticket URL: <http://bugs.call-cc.org/ticket/502>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #502: in spiffy, make tcp-addresses configurable,
Chicken Trac <=