Diff for /libwww/Robot/src/HTRobot.c between versions 1.14 and 1.15

version 1.14, 1996/03/04 03:14:39 version 1.15, 1996/04/14 01:23:48
Line 282  PRIVATE void VersionInfo (void) Line 282  PRIVATE void VersionInfo (void)
 **      This function is registered to handle the result of the request.  **      This function is registered to handle the result of the request.
 **      If no more requests are pending then terminate program  **      If no more requests are pending then terminate program
 */  */
 PRIVATE int terminate_handler (HTRequest * request, int status)   PRIVATE int terminate_handler (HTRequest * request, void * param, int status) 
 {  {
     Robot * mr = (Robot *) HTRequest_context(request);      Robot * mr = (Robot *) HTRequest_context(request);
     if (mr->logfile) HTLog_add(request, status);      if (mr->logfile) HTLog_add(request, status);
Line 318  PRIVATE int timeout_handler (HTRequest * Line 318  PRIVATE int timeout_handler (HTRequest *
 **                      HT_ERROR                We can't load this  **                      HT_ERROR                We can't load this
 **                      HT_OK                   Success  **                      HT_OK                   Success
 */  */
 PRIVATE int proxy_handler (HTRequest * request, int status)  PRIVATE int proxy_handler (HTRequest * request, void * param, int status)
 {  {
     HTParentAnchor *anchor = HTRequest_anchor(request);      HTParentAnchor *anchor = HTRequest_anchor(request);
     char * addr = HTAnchor_address((HTAnchor *) anchor);      char * addr = HTAnchor_address((HTAnchor *) anchor);
Line 653  int main (int argc, char ** argv) Line 653  int main (int argc, char ** argv)
     }      }
   
     /* Register a call back function for the Net Manager */      /* Register a call back function for the Net Manager */
     HTNetCall_addBefore(proxy_handler, 0);      HTNetCall_addBefore(proxy_handler, NULL, 0);
     HTNetCall_addAfter(terminate_handler, HT_ALL);      HTNetCall_addAfter(terminate_handler, NULL, HT_ALL);
           
     /* Set timeout on sockets */      /* Set timeout on sockets */
     HTEvent_registerTimeout(mr->tv, mr->timeout, timeout_handler, NO);      HTEvent_registerTimeout(mr->tv, mr->timeout, timeout_handler, NO);

Removed from v.1.14  
changed lines
  Added in v.1.15


Webmaster