From: <no...@so...> - 2010-04-03 13:21:38
|
Update of /cvsroot/ijbswa/current In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv20858 Modified Files: jcc.c Log Message: Improve chat()'s description a bit. Index: jcc.c =================================================================== RCS file: /cvsroot/ijbswa/current/jcc.c,v retrieving revision 1.312 retrieving revision 1.313 diff -u -d -r1.312 -r1.313 --- jcc.c 24 Jan 2010 15:36:08 -0000 1.312 +++ jcc.c 3 Apr 2010 13:21:30 -0000 1.313 @@ -1567,11 +1567,16 @@ * * Function : chat * - * Description : Once a connection to the client has been accepted, + * Description : Once a connection from the client has been accepted, * this function is called (via serve()) to handle the - * main business of the communication. When this - * function returns, the caller must close the client - * socket handle. + * main business of the communication. This function + * returns after dealing with a single request. It can + * be called multiple times witht the same client socket + * if the client is keeping the connection alive. + * + * The decision whether or not a client connection will + * be kept alive is up to the caller which also must + * close the client socket when done. * * FIXME: chat is nearly thousand lines long. * Ridiculous. |