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

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


On Jan 29, 2008 12:41 AM, Jeff Read <bitwize at gmail.com> wrote:
> 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().

By the way, see also the Gambit documentation section 17.7.3 "Network
devices" for more info on this phenomenon.

--Jeff



More information about the Gambit-list mailing list