8eztcp-teachpack-doc - DrScheme Fall 2005 Prabhakar Ragde...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
DrScheme Fall 2005 Prabhakar Ragde Documentation for the eztcp.ss Teachpack Language level : Intermediate Student. Teachpack : eztcp.ss The eztcp.ss teachpack provides two functions which allow for communication between pro- cesses running on different computers. This communication takes place through a numbered port. install-listener consumes a number representing that port, and a listener, which is a function which handles information coming through that port. That function consumes a Scheme expression and pro- duces true ( install-listener also produces true ). Every time information arrives on that port, the listener function is applied with the information as its argument. The information is interpreted as a Scheme expression, in the fashion we described in lecture when talking about node-labelled trees. That is, it is a list which can contain other lists, and the base types are number, symbol, and string. The second function provided by the teachpack is
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/16/2011 for the course CS 135 taught by Professor Vasiga during the Fall '07 term at Waterloo.

Ask a homework question - tutors are online