Home
last modified time | relevance | path

Searched refs:sock_fd (Results 1 – 7 of 7) sorted by relevance

/device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_socket.c553 int sock_fd = -1; in tunning_server_socket_listen() local
570 sock_fd = socket(AF_INET, SOCK_STREAM, 0); in tunning_server_socket_listen()
571 if (sock_fd < 0) { in tunning_server_socket_listen()
573 return sock_fd; in tunning_server_socket_listen()
577 socket_flag = fcntl(sock_fd, F_GETFL, 0); in tunning_server_socket_listen()
578 fcntl(sock_fd, F_SETFL, socket_flag | O_NONBLOCK); in tunning_server_socket_listen()
582 result = setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, in tunning_server_socket_listen()
587 close(sock_fd); in tunning_server_socket_listen()
588 sock_fd = -1; in tunning_server_socket_listen()
589 return sock_fd; in tunning_server_socket_listen()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dsocketmodule.c471 #define IS_SELECTABLE(s) (_PyIsSelectable_fd((s)->sock_fd) || (s)->sock_timeout <= 0.0)
605 sendsegmented(int sock_fd, char *buf, int len, int flags) in sendsegmented() argument
614 n = send(sock_fd, buf, segment, flags); in sendsegmented()
640 setsockopt(s->sock_fd, SOL_SOCKET, SO_NONBLOCK, in internal_setblocking()
647 ioctl(s->sock_fd, FIONBIO, (caddr_t)&block, sizeof(block)); in internal_setblocking()
650 ioctl(s->sock_fd, FIONBIO, (unsigned int *)&block); in internal_setblocking()
652 delay_flag = fcntl(s->sock_fd, F_GETFL, 0); in internal_setblocking()
657 fcntl(s->sock_fd, F_SETFL, delay_flag); in internal_setblocking()
661 ioctlsocket(s->sock_fd, FIONBIO, (u_long*)&block); in internal_setblocking()
665 socketioctl(s->sock_fd, FIONBIO, (u_long*)&block); in internal_setblocking()
[all …]
Dsocketmodule.h126 SOCKET_T sock_fd; /* Socket file descriptor */ member
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dsocketmodule.c470 #define IS_SELECTABLE(s) ((s)->sock_fd < FD_SETSIZE || s->sock_timeout <= 0.0)
593 sendsegmented(int sock_fd, char *buf, int len, int flags) in sendsegmented() argument
602 n = send(sock_fd, buf, segment, flags); in sendsegmented()
628 setsockopt(s->sock_fd, SOL_SOCKET, SO_NONBLOCK, in internal_setblocking()
635 ioctl(s->sock_fd, FIONBIO, (caddr_t)&block, sizeof(block)); in internal_setblocking()
638 ioctl(s->sock_fd, FIONBIO, (unsigned int *)&block); in internal_setblocking()
640 delay_flag = fcntl(s->sock_fd, F_GETFL, 0); in internal_setblocking()
645 fcntl(s->sock_fd, F_SETFL, delay_flag); in internal_setblocking()
649 ioctlsocket(s->sock_fd, FIONBIO, (u_long*)&block); in internal_setblocking()
653 socketioctl(s->sock_fd, FIONBIO, (u_long*)&block); in internal_setblocking()
[all …]
Dsocketmodule.h126 SOCKET_T sock_fd; /* Socket file descriptor */ member
D_ssl.c386 SSL_set_fd(self->ssl, Sock->sock_fd); /* Set the socket for SSL */ in newPySSLObject()
1124 if (s->sock_fd < 0) in check_socket_and_wait_for_timeout()
1134 pollfd.fd = s->sock_fd; in check_socket_and_wait_for_timeout()
1149 if (s->sock_fd >= FD_SETSIZE) in check_socket_and_wait_for_timeout()
1157 FD_SET(s->sock_fd, &fds); in check_socket_and_wait_for_timeout()
1162 rc = select(s->sock_fd+1, NULL, &fds, NULL, &tv); in check_socket_and_wait_for_timeout()
1164 rc = select(s->sock_fd+1, &fds, NULL, NULL, &tv); in check_socket_and_wait_for_timeout()
1372 if (self->Socket->sock_fd < 0) { in PySSL_SSLshutdown()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
Dsocketmodule.h126 SOCKET_T sock_fd; /* Socket file descriptor */ member