Lines Matching refs:sockaddr

531 	if (bind(sock->bsd_socket, (struct sockaddr *)&la, sizeof(la)) != 0) {
549 static int php_accept_connect(php_socket *in_sock, php_socket **new_sock, struct sockaddr *la, sock…
1073 if (!php_accept_connect(php_sock, &new_sock, (struct sockaddr*)&sa, &php_sa_len)) {
1323 struct sockaddr *sa;
1341 sa = (struct sockaddr *) &sa_storage;
1397 struct sockaddr *sa;
1415 sa = (struct sockaddr *) &sa_storage;
1549 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin6, sizeof(struct sockaddr_in6));
1568 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));
1582 retval = connect(php_sock->bsd_socket, (struct sockaddr *) &s_un,
1621 struct sockaddr *sock_type = (struct sockaddr*) &sa_storage;
1651 retval = bind(php_sock->bsd_socket, (struct sockaddr *) sa,
1667 retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr_in));
1682 retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr_in6));
1816 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&s_un, …
1840 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (…
1867 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin6, …
1930 …t, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &s_un, SUN_LEN…
1946 …t, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &sin, sizeof(s…
1962 …t, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &sin6, sizeof(…
2396 if (getsockname(socket, (struct sockaddr*)&addr, &addr_len) == 0) {
2768 zval *arg1, sockaddr; local
2789 array_init(&sockaddr);
2796 add_assoc_long(&sockaddr, "sin_port", ntohs((unsigned short) sa->sin_port));
2798 add_assoc_string(&sockaddr, "sin_addr", addr);
2807 add_assoc_long(&sockaddr, "sin6_port", ntohs((unsigned short) sa->sin6_port));
2809 add_assoc_string(&sockaddr, "sin6_addr", addr);
2815 add_assoc_zval(return_value, "ai_addr", &sockaddr);