/*
- * $Id: comm.cc,v 1.396 2004/10/18 12:20:09 hno Exp $
+ * $Id: comm.cc,v 1.397 2004/11/06 22:11:39 hno Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
assert(Fc->write.handler != NULL);
/* Attempt a write */
- statCounter.syscalls.sock.reads++;
+ statCounter.syscalls.sock.writes++;
errno = 0;
retval = FD_WRITE_METHOD(fd, Fc->write.buf + Fc->write.curofs, Fc->write.size - Fc->write.curofs);
debug(5, 3) ("comm_write_try: fd %d: tried to write %d bytes, retval %d, errno %d\n",
int fd2 = socket(AF_INET, SOCK_STREAM, 0);
- statCounter.syscalls.sock.sockets++;
-
if (fd2 < 0) {
debug(5, 0) ("commResetFD: socket: %s\n", xstrerror());