int HTTP_Close(void) { unsigned long r,w; finish_tell_io(server,&r,&w); PrintMessage(Inform,"Server bytes; %d Read, %d Written.",r,w); /* Used in audit-usage.pl */ if(proxyUrl) FreeURL(proxyUrl); proxyUrl=NULL; return(CloseSocket(server)); }
int SSL_Close(void) { unsigned long r,w; if(finish_tell_io(server,&r,&w)<0) PrintMessage(Inform,"Error finishing IO on socket with remote host [%!s]."); PrintMessage(Inform,"Server bytes; %lu Read, %lu Written.",r,w); /* Used in audit-usage.pl */ if(proxyUrl) FreeURL(proxyUrl); proxyUrl=NULL; return(CloseSocket(server)); }
int HTTP_Close(Connection *connection) { unsigned long r,w; int server=connection->fd; if(finish_tell_io(server,&r,&w)<0) PrintMessage(Inform,"Error finishing IO on socket with remote host [%!s]."); PrintMessage(Inform,"Server bytes; %lu Read, %lu Written.",r,w); /* Used in audit-usage.pl */ #if 0 /* We can clean up the connection context here, or rely on ConnectionClose to do it. */ if(connection->proxyUrl) {FreeURL(connection->proxyUrl); connection->proxyUrl=NULL;} #endif return(CloseSocket(server)); }