/*
- * Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: socket.c,v 1.70.54.5.10.1 2010/11/18 00:40:44 marka Exp $ */
+/* $Id: socket.c,v 1.70.54.5.10.2 2010/11/18 00:59:01 tbox Exp $ */
/* This code uses functions which are only available on Server 2003 and
* higher, and Windows XP and higher.
{
isc_socket_t *nsock = lpo->adev->newsocket;
SOCKET new_fd;
-
+
/*
* AcceptEx() requires we pass in a socket. Note that we carefully
* do not close the previous socket in case of an error message returned by
nsock->fd = new_fd;
memset(&lpo->overlapped, 0, sizeof(lpo->overlapped));
-
+
ISCAcceptEx(parent->fd,
nsock->fd, /* Accepted Socket */
lpo->acceptbuffer, /* Buffer for initial Recv */
InterlockedDecrement(&nsock->manager->iocp_total);
iocompletionport_update(nsock);
-
+
return (ISC_R_SUCCESS);
}