Lines Matching refs:sockaddr
498 if (bind(sock->bsd_socket, (struct sockaddr *)&la, sizeof(la)) != 0) {
516 static int php_accept_connect(php_socket *in_sock, php_socket **new_sock, struct sockaddr *la, sock…
1025 if (!php_accept_connect(php_sock, &new_sock, (struct sockaddr*)&sa, &php_sa_len)) {
1275 struct sockaddr *sa;
1293 sa = (struct sockaddr *) &sa_storage;
1358 struct sockaddr *sa;
1376 sa = (struct sockaddr *) &sa_storage;
1514 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin6, sizeof(struct sockaddr_in6));
1533 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));
1547 retval = connect(php_sock->bsd_socket, (struct sockaddr *) &s_un,
1586 struct sockaddr *sock_type = (struct sockaddr*) &sa_storage;
1616 retval = bind(php_sock->bsd_socket, (struct sockaddr *) sa,
1632 retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr_in));
1647 retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr_in6));
1786 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&s_un, …
1813 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (…
1844 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin6, …
1911 …t, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &s_un, SUN_LEN…
1927 …t, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &sin, sizeof(s…
1943 …t, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &sin6, sizeof(…
2372 if (getsockname(socket, (struct sockaddr*)&addr, &addr_len) == 0) {
2737 zval *arg1, sockaddr; local
2758 array_init(&sockaddr);
2765 add_assoc_long(&sockaddr, "sin_port", ntohs((unsigned short) sa->sin_port));
2767 add_assoc_string(&sockaddr, "sin_addr", addr);
2776 add_assoc_long(&sockaddr, "sin6_port", ntohs((unsigned short) sa->sin6_port));
2778 add_assoc_string(&sockaddr, "sin6_addr", addr);
2784 add_assoc_zval(return_value, "ai_addr", &sockaddr);