technology, scones, nonsense






Subscribe to my RSS Feed



When a connection is accepted, each associated module in the connection map is notified in turn by calling the connect() method for each module. The arguments given are a descriptor, representing the connected socket endpoint, and a list of arguments that were specified in the configuration for the connection map (if any were given). In theory, a module can do anything in response to a connection notification, though typically it will:

A simple module might just install a stream to count the number of bytes sent and recieved through the connection, for example, the "stat" module does exactly this. A more complicated module might perform buffering to increase I/O efficency, or implement some kind of filtering, or encryption of data.

SconeServer can be easily extended to handle new protocols or features by writing new modules. The next section will show how this can be done by developing some example modules.

Updated on 2013-10-31 10:08:19 +0000 | Requested on 2021-05-12 17:33:47 +0000