Lines Matching refs:nsock
1974 isc_socket_t *nsock;
2003 nsock = adev->newsocket;
2020 nsock->address = adev->address;
2021 nsock->pf = adev->address.type.sa.sa_family;
2023 socket_log(__LINE__, nsock, &nsock->address, TRACE,
2035 INSIST(setsockopt(nsock->fd, SOL_SOCKET, SO_UPDATE_ACCEPT_CONTEXT,
2041 nsock->bound = 1;
2042 nsock->connected = 1;
2043 _set_state(nsock, SOCK_OPEN);
2045 LOCK(&nsock->manager->lock);
2046 ISC_LIST_APPEND(nsock->manager->socklist, nsock, link);
2047 InterlockedIncrement(&nsock->manager->totalSockets);
2048 UNLOCK(&nsock->manager->lock);
2050 socket_log(__LINE__, sock, &nsock->address, CREATION,
2053 nsock, nsock->fd);
2342 isc_socket_t *nsock = lpo->adev->newsocket;
2352 if (nsock->fd == INVALID_SOCKET) {
2355 closesocket(nsock->fd);
2356 nsock->fd = new_fd;
2361 nsock->fd, /* Accepted Socket */
2370 InterlockedDecrement(&nsock->manager->iocp_total);
2371 iocompletionport_update(nsock);
3276 isc_socket_t *nsock;
3312 result = allocate_socket(manager, sock->type, &nsock);
3322 nsock->fd = socket(sock->pf, SOCK_STREAM, IPPROTO_TCP);
3323 if (nsock->fd == INVALID_SOCKET) {
3324 free_socket(&nsock, __LINE__);
3335 free_socket(&nsock, __LINE__);
3341 nsock->references++;
3344 adev->newsocket = nsock;
3345 _set_state(nsock, SOCK_ACCEPT);
3362 nsock->fd, /* Accepted Socket */
3370 iocompletionport_update(nsock);
3374 "accepting for nsock %p fd %d", nsock, nsock->fd);