Lines Matching refs:sockaddr
84 static int my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen);
148 if (getsockname(ftp->fd, (struct sockaddr*) &ftp->localaddr, &size) != 0) { in ftp_open()
805 struct sockaddr *sa; in ftp_pasv()
820 sa = (struct sockaddr *) &ftp->pasvaddr; in ftp_pasv()
1634 my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen) in my_accept()
1664 struct sockaddr *sa; in ftp_getdata()
1682 sa = (struct sockaddr *) &ftp->localaddr; in ftp_getdata()
1699 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
1717 if (bind(fd, (struct sockaddr*) &addr, size) != 0) { in ftp_getdata()
1722 if (getsockname(fd, (struct sockaddr*) &addr, &size) != 0) { in ftp_getdata()
1806 data->fd = my_accept(ftp, data->listener, (struct sockaddr*) &addr, &size); in data_accept()