/*
- * $Id: comm.cc,v 1.71 1996/09/16 21:11:05 wessels Exp $
+ * $Id: comm.cc,v 1.72 1996/09/16 21:20:45 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
* is OR of flags specified in comm.h. */
int
comm_open(int sock_type,
- int proto,
- struct in_addr addr,
- u_short port,
- int flags,
- char *note)
+ int proto,
+ struct in_addr addr,
+ u_short port,
+ int flags,
+ char *note)
{
int new_socket;
FD_ENTRY *conn = NULL;
/*
- * $Id: dns.cc,v 1.9 1996/09/16 21:11:06 wessels Exp $
+ * $Id: dns.cc,v 1.10 1996/09/16 21:20:45 wessels Exp $
*
* DEBUG: section 34 Dnsserver interface
* AUTHOR: Harvest Derived
comm_close(cfd); /* close shared socket with child */
/* open new socket for parent process */
sfd = comm_open(SOCK_STREAM,
- 0, /* protocol */
- local_addr,
- 0, /* port */
- 0, /* flags */
- NULL); /* blocking! */
+ 0, /* protocol */
+ local_addr,
+ 0, /* port */
+ 0, /* flags */
+ NULL); /* blocking! */
if (sfd == COMM_ERROR)
return -1;
if (comm_connect(sfd, localhost, port) == COMM_ERROR) {
COMM_SELECT_READ,
(PF) icmpRecv,
(void *) -1);
- debug(37, 0, "icmpOpen: icmp_sock opened on FD %d\n", icmp_sock);
+ debug(37, 0, "ICMP socket opened on FD %d\n", icmp_sock);
}
void
/*
- * $Id: ident.cc,v 1.13 1996/09/16 21:11:09 wessels Exp $
+ * $Id: ident.cc,v 1.14 1996/09/16 21:20:47 wessels Exp $
*
* DEBUG: section 30 Ident (RFC 931)
* AUTHOR: Duane Wessels
if (sock < 0) {
sock = comm_open(SOCK_STREAM,
- 0,
- Config.Addrs.tcp_outgoing,
- 0,
- COMM_NONBLOCKING,
- "ident");
+ 0,
+ Config.Addrs.tcp_outgoing,
+ 0,
+ COMM_NONBLOCKING,
+ "ident");
if (sock == COMM_ERROR)
return;
}
/*
- * $Id: ipcache.cc,v 1.60 1996/09/16 21:11:10 wessels Exp $
+ * $Id: ipcache.cc,v 1.61 1996/09/16 21:20:47 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
i->addr_count);
for (k = 0; k < (int) i->addr_count; k++)
storeAppendPrintf(sentry, " %15s",
- inet_ntoa(inaddrFromHostent(&i->entry)));
+ inet_ntoa(inaddrFromHostent(&i->entry)));
for (k = 0; k < (int) i->alias_count; k++)
storeAppendPrintf(sentry, " %s", i->entry.h_aliases[k]);
if (i->entry.h_name && strncmp(i->name, i->entry.h_name, MAX_LINELEN))
/*
- * $Id: main.cc,v 1.76 1996/09/16 21:11:11 wessels Exp $
+ * $Id: main.cc,v 1.77 1996/09/16 21:20:48 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
if ((addr = Config.Addrs.udp_outgoing).s_addr != INADDR_NONE) {
theOutIcpConnection = comm_open(SOCK_DGRAM,
- 0,
+ 0,
addr,
port,
- COMM_NONBLOCKING,
+ COMM_NONBLOCKING,
"ICP Port");
if (theOutIcpConnection < 0)
fatal("Cannot open Outgoing ICP Port");
/*
- * $Id: redirect.cc,v 1.16 1996/09/16 21:11:13 wessels Exp $
+ * $Id: redirect.cc,v 1.17 1996/09/16 21:20:49 wessels Exp $
*
* DEBUG: section 29 Redirector
* AUTHOR: Duane Wessels
comm_close(cfd); /* close shared socket with child */
/* open new socket for parent process */
sfd = comm_open(SOCK_STREAM,
- 0,
- local_addr,
- 0,
- 0,
- NULL); /* blocking! */
+ 0,
+ local_addr,
+ 0,
+ 0,
+ NULL); /* blocking! */
if (sfd == COMM_ERROR)
return -1;
if (comm_connect(sfd, localhost, port) == COMM_ERROR) {
/*
- * $Id: store.cc,v 1.111 1996/09/15 08:06:31 wessels Exp $
+ * $Id: store.cc,v 1.112 1996/09/16 21:20:49 wessels Exp $
*
* DEBUG: section 20 Storeage Manager
* AUTHOR: Harvest Derived
return 0;
}
for (e = storeGetFirst(); e; e = storeGetNext()) {
- debug(20, 5, "storeWriteCleanLog: <URL:%s>\n", e->url);
if (e->swap_file_number < 0)
continue;
if (e->swap_status != SWAP_OK)
/*
- * $Id: tools.cc,v 1.58 1996/09/16 21:11:16 wessels Exp $
+ * $Id: tools.cc,v 1.59 1996/09/16 21:20:50 wessels Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
struct in_addr
inaddrFromHostent(struct hostent *hp)
{
- struct in_addr s;
- memcpy(&s.s_addr, hp->h_addr, sizeof(s.s_addr));
- return s;
+ struct in_addr s;
+ memcpy(&s.s_addr, hp->h_addr, sizeof(s.s_addr));
+ return s;
}