console class

This class is designed for creating simple interactive services, which work in text line-by-line mode.

These services can work with help of standard UNIX inetd program.

For example, it is possible to implement news-server (NNTP) in Parser.
Add a line like this to your
/etc/inetd.conf file and restart inetd:
nntp stream tcp nowait unix_user /path/to/parser3 /path/to/parser3 /path/to/nntp.p

In
nntp.p script code your NNTP server.
This would give people an ability to use it-
nntp://your_server.


Copyright © 1997–2025 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 07.04.2024