Lines Matching refs:sockaddr
247 if (bind(sock->bsd_socket, (struct sockaddr *)&la, sizeof(la)) != 0) {
263 static bool php_accept_connect(php_socket *in_sock, php_socket *out_sock, struct sockaddr *la, sock…
714 if (!php_accept_connect(php_sock, new_sock, (struct sockaddr*)&sa, &php_sa_len)) {
961 struct sockaddr *sa;
981 sa = (struct sockaddr *) &sa_storage;
1032 struct sockaddr *sa;
1052 sa = (struct sockaddr *) &sa_storage;
1194 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin6, sizeof(struct sockaddr_in6));
1213 retval = connect(php_sock->bsd_socket, (struct sockaddr *)&sin, sizeof(struct sockaddr_in));
1227 retval = connect(php_sock->bsd_socket, (struct sockaddr *) &s_un,
1269 struct sockaddr *sock_type = (struct sockaddr*) &sa_storage;
1299 retval = bind(php_sock->bsd_socket, (struct sockaddr *) sa,
1315 retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr_in));
1330 retval = bind(php_sock->bsd_socket, (struct sockaddr *)sa, sizeof(struct sockaddr_in6));
1472 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&s_un, …
1496 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin, (…
1523 …retval = recvfrom(php_sock->bsd_socket, ZSTR_VAL(recv_buf), arg3, arg4, (struct sockaddr *)&sin6, …
1590 …t, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &s_un, SUN_LEN…
1607 …t, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &sin, sizeof(s…
1624 …t, buf, ((size_t)len > buf_len) ? buf_len : (size_t)len, flags, (struct sockaddr *) &sin6, sizeof(…
2365 if (getsockname(socket, (struct sockaddr*)&addr, &addr_len) == 0) {
2726 zval *arg1, sockaddr; local
2745 array_init(&sockaddr);
2752 add_assoc_long(&sockaddr, "sin_port", ntohs((unsigned short) sa->sin_port));
2754 add_assoc_string(&sockaddr, "sin_addr", addr);
2763 add_assoc_long(&sockaddr, "sin6_port", ntohs((unsigned short) sa->sin6_port));
2765 add_assoc_string(&sockaddr, "sin6_addr", addr);
2771 add_assoc_zval(return_value, "ai_addr", &sockaddr);