Home | History | Annotate | Download | only in Modules

Lines Matching defs:sock_fd

521 #define IS_SELECTABLE(s) (_PyIsSelectable_fd((s)->sock_fd) || (s)->sock_timeout <= 0)
646 if (ioctl(s->sock_fd, FIONBIO, (unsigned int *)&block) == -1)
649 delay_flag = fcntl(s->sock_fd, F_GETFL, 0);
657 if (fcntl(s->sock_fd, F_SETFL, new_delay_flag) == -1)
662 if (ioctlsocket(s->sock_fd, FIONBIO, &arg) != 0)
705 if (s->sock_fd == INVALID_SOCKET)
711 pollfd.fd = s->sock_fd;
737 FD_SET(s->sock_fd, &fds);
744 FD_SET(s->sock_fd, &efds);
750 n = select(Py_SAFE_DOWNCAST(s->sock_fd+1, SOCKET_T, int),
753 n = select(Py_SAFE_DOWNCAST(s->sock_fd+1, SOCKET_T, int),
932 s->sock_fd = fd;
1822 if (ioctl(s->sock_fd, SIOCGIFINDEX, &ifr) < 0) {
1933 if (ioctl(s->sock_fd, SIOCGIFINDEX, &ifr) < 0) {
1990 if (ioctl(s->sock_fd, CTLIOCGINFO, &info)) {
2348 ctx->result = accept4(s->sock_fd, addr, paddrlen,
2356 ctx->result = accept(s->sock_fd, addr, paddrlen);
2358 ctx->result = accept(s->sock_fd, addr, paddrlen);
2419 addr = makesockaddr(s->sock_fd, SAS2SA(&addrbuf),
2581 res = setsockopt(s->sock_fd, level, optname,
2591 res = setsockopt(s->sock_fd, level, optname,
2610 res = setsockopt(s->sock_fd, level, optname,
2613 res = setsockopt(s->sock_fd, level, optname, optval.buf, optval.len);
2656 res = getsockopt(s->sock_fd, level, optname,
2670 res = getsockopt(s->sock_fd, level, optname,
2700 res = bind(s->sock_fd, SAS2SA(&addrbuf), addrlen);
2726 fd = s->sock_fd;
2728 s->sock_fd = INVALID_SOCKET;
2753 SOCKET_T fd = s->sock_fd;
2754 s->sock_fd = INVALID_SOCKET;
2771 if (getsockopt(s->sock_fd, SOL_SOCKET, SO_ERROR, (void *)&err, &size)) {
2793 res = connect(s->sock_fd, addr, addrlen);
2909 return PyLong_FromSocket_t(s->sock_fd);
2931 res = getsockname(s->sock_fd, SAS2SA(&addrbuf), &addrlen);
2935 return makesockaddr(s->sock_fd, SAS2SA(&addrbuf), addrlen,
2960 res = getpeername(s->sock_fd, SAS2SA(&addrbuf), &addrlen);
2964 return makesockaddr(s->sock_fd, SAS2SA(&addrbuf), addrlen,
2995 res = listen(s->sock_fd, backlog);
3026 ctx->result = recv(s->sock_fd, ctx->cbuf, (int)ctx->len, ctx->flags);
3028 ctx->result = recv(s->sock_fd, ctx->cbuf, ctx->len, ctx->flags);
3196 ctx->result = recvfrom(s->sock_fd, ctx->cbuf, (int)ctx->len, ctx->flags,
3199 ctx->result = recvfrom(s->sock_fd, ctx->cbuf, ctx->len, ctx->flags,
3243 *addr = makesockaddr(s->sock_fd, SAS2SA(&addrbuf), addrlen,
3373 ctx->result = recvmsg(s->sock_fd
3482 makesockaddr(s->sock_fd, SAS2SA(&addrbuf),
3702 ctx->result = send(s->sock_fd, ctx->buf, (int)ctx->len, ctx->flags);
3704 ctx->result = send(s->sock_fd, ctx->buf, ctx->len, ctx->flags);
3841 ctx->result = sendto(s->sock_fd, ctx->buf, (int)ctx->len, ctx->flags,
3844 ctx->result = sendto(s->sock_fd, ctx->buf, ctx->len, ctx->flags,
3983 ctx->result = sendmsg(s->sock_fd, ctx->msg, ctx->flags);
4360 res = shutdown(s->sock_fd, how);
4390 if (WSAIoctl(s->sock_fd, cmd, &option, sizeof(option),
4400 if (WSAIoctl(s->sock_fd, cmd, &ka, sizeof(ka),
4410 if (WSAIoctl(s->sock_fd, cmd, &option, sizeof(option),
4442 result = WSADuplicateSocket(s->sock_fd, processId, &info);
4558 if (s->sock_fd != INVALID_SOCKET) {
4570 fd = s->sock_fd;
4571 s->sock_fd = INVALID_SOCKET;
4596 long sock_fd;
4598 if (s->sock_fd == INVALID_SOCKET) {
4599 sock_fd = -1;
4602 else if (s->sock_fd > LONG_MAX) {
4613 sock_fd = (long)s->sock_fd;
4616 sock_fd, s->sock_family,
4631 ((PySocketSockObject *)new)->sock_fd = INVALID_SOCKET;