Home
last modified time | relevance | path

Searched refs:sockfd (Results 1 – 3 of 3) sorted by relevance

/PHP-5.5/ext/sockets/
H A Dsendrecvmsg.c42 inline ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags) in recvmsg() argument
48 int res = WSAIoctl((SOCKET) sockfd, SIO_GET_EXTENSION_FUNCTION_POINTER, in recvmsg()
58 return WSARecvMsg((SOCKET)sockfd, msg, &recvd, NULL, NULL) == 0 in recvmsg()
62 inline ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags) in sendmsg() argument
65 return WSASendMsg((SOCKET)sockfd, (struct msghdr*)msg, (DWORD)flags, &sent, NULL, NULL) == 0 in sendmsg()
/PHP-5.5/main/
H A Dnetwork.c308 PHPAPI int php_network_connect_socket(php_socket_t sockfd, argument
323 SET_SOCKET_BLOCKING_MODE(sockfd, orig_flags);
325 if ((n = connect(sockfd, addr, addrlen)) != 0) {
356 if ((n = php_pollfd_for(sockfd, POLLOUT|POLLPRI, timeout)) == 0) {
358 if ((n = php_pollfd_for(sockfd, PHP_POLLREADABLE|POLLOUT, timeout)) == 0) {
369 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, (char*)&error, &len) != 0) {
380 RESTORE_SOCKET_BLOCKING_MODE(sockfd, orig_flags);
398 return (connect(sockfd, addr, addrlen) == 0) ? 0 : -1;
H A Dphp_network.h235 PHPAPI int php_network_connect_socket(php_socket_t sockfd,

Completed in 10 milliseconds