[gambit-list] direction of a tcp object port?

Jeff Read bitwize at gmail.com
Tue Jan 29 00:41:29 EST 2008


Hi Bob,

On Jan 29, 2008 12:05 AM, Bob McIsaac <bobmc at fcibroadband.com> wrote:
> Hi:
>
> How does one alter the directionality of a tcp object port? It defaults
> to input-port which results in an exception for a write form.
> -Bob

Starting a "server port" in Gambit indeed creates a read-only port;
however, the objects read from this port are new, bi-directional
ports, each representing a pending TCP connection. Communication takes
place only on these ports, as it makes no sense to write to a
listening socket. Compare this to the BSD sockets interface wherein
calling accept() on a listening socket will yield a new socket to
begin communications on. Each (read) on the server port is like one
accept().

--Jeff



More information about the Gambit-list mailing list