Lines Matching refs:sockaddr
81 static int my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen);
145 if (getsockname(ftp->fd, (struct sockaddr*) &ftp->localaddr, &size) != 0) { in ftp_open()
802 struct sockaddr *sa; in ftp_pasv()
817 sa = (struct sockaddr *) &ftp->pasvaddr; in ftp_pasv()
1624 my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen) in my_accept()
1654 struct sockaddr *sa; in ftp_getdata()
1672 sa = (struct sockaddr *) &ftp->localaddr; in ftp_getdata()
1689 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
1707 if (bind(fd, (struct sockaddr*) &addr, size) != 0) { in ftp_getdata()
1712 if (getsockname(fd, (struct sockaddr*) &addr, &size) != 0) { in ftp_getdata()
1796 data->fd = my_accept(ftp, data->listener, (struct sockaddr*) &addr, &size); in data_accept()