/*
- * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 2000-2002 Internet Software Consortium.
+ * Copyright (C) 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: errno2result.c,v 1.4.2.5.2.13 2008/09/11 21:06:29 each Exp $ */
+/* $Id: errno2result.c,v 1.4.2.5.2.14 2008/09/11 23:45:32 tbox Exp $ */
#include <config.h>
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: socket.c,v 1.5.2.13.2.42 2008/09/11 12:29:20 marka Exp $ */
+/* $Id: socket.c,v 1.5.2.13.2.43 2008/09/11 23:45:32 tbox Exp $ */
/* This code uses functions which are only available on Server 2003 and
* higher, and Windows XP and higher.
ISC_LOGCATEGORY_GENERAL,
ISC_LOGMODULE_SOCKET, ISC_LOG_ERROR,
isc_msgcat, ISC_MSGSET_SOCKET,
- ISC_MSG_TOOMANYHANDLES,
+ ISC_MSG_TOOMANYHANDLES,
"iocompletionport_update: failed to open"
" io completion port: %s",
- strbuf);
+ strbuf);
/* XXXMLG temporary hack to make failures detected.
* This function should return errors to the caller, not
memcpy(&msg->to_addr, &dev->address.type, dev->address.length);
msg->to_addr_len = dev->address.length;
-
+
buffer = ISC_LIST_HEAD(dev->bufferlist);
write_count = 0;
iovcount = 0;
if (crash) {
socket_log(__LINE__, sock, NULL, CREATION, isc_msgcat, ISC_MSGSET_SOCKET,
ISC_MSG_DESTROYING, "SOCKET INCONSISTENT: %s",
- crash_reason);
+ crash_reason);
sock_dump(sock);
INSIST(crash == ISC_FALSE);
}
result = make_nonblock(adev->newsocket->fd);
INSIST(result == ISC_R_SUCCESS);
- INSIST(setsockopt(nsock->fd, SOL_SOCKET, SO_UPDATE_ACCEPT_CONTEXT,
+ INSIST(setsockopt(nsock->fd, SOL_SOCKET, SO_UPDATE_ACCEPT_CONTEXT,
(char *)&sock->fd, sizeof(sock->fd)) == 0);
/*
}
} else {
INSIST(setsockopt(sock->fd, SOL_SOCKET, SO_UPDATE_CONNECT_CONTEXT, NULL, 0) == 0);
- cdev->result = ISC_R_SUCCESS;
+ cdev->result = ISC_R_SUCCESS;
sock->connected = 1;
socket_log(__LINE__, sock, &sock->address, IOEVENT,
isc_msgcat, ISC_MSGSET_SOCKET, ISC_MSG_ACCEPTEDCXN,
INFINITE);
if (lpo == NULL) /* Received request to exit */
break;
-
+
REQUIRE(VALID_SOCKET(sock));
request = lpo->request_type;
/*
* If there are more receivers waiting for data, queue another receive
- * here. If the
+ * here. If the
*/
queue_receive_request(sock);
ret = isc_socket_recv2(sock, region, minimum, task, dev, 0);
UNLOCK(&sock->lock);
- return (ret);
+ return (ret);
}
isc_result_t
lpo->adev = adev;
lpo->request_type = SOCKET_ACCEPT;
- ISCAcceptEx(sock->fd,
+ ISCAcceptEx(sock->fd,
nsock->fd, /* Accepted Socket */
lpo->acceptbuffer, /* Buffer for initial Recv */
0, /* Length of Buffer */
-Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
+Copyright (C) 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC")
Copyright (C) 2001, 2003 Internet Software Consortium.
See COPYRIGHT in the source root or http://isc.org/copyright.html for terms.
-$Id: readme1st.txt,v 1.7.2.4.4.7 2008/09/11 06:14:47 each Exp $
+$Id: readme1st.txt,v 1.7.2.4.4.8 2008/09/11 23:45:32 tbox Exp $
Release of BIND 9.3 for Window XP/2003