Lines Matching refs:sockaddr
80 static int my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen);
143 if (getsockname(ftp->fd, (struct sockaddr*) &ftp->localaddr, &size) != 0) { in ftp_open()
799 struct sockaddr *sa; in ftp_pasv()
814 sa = (struct sockaddr *) &ftp->pasvaddr; in ftp_pasv()
1633 my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen) in my_accept()
1662 struct sockaddr *sa; in ftp_getdata()
1680 sa = (struct sockaddr *) &ftp->localaddr; in ftp_getdata()
1697 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
1715 if (bind(fd, (struct sockaddr*) &addr, size) != 0) { in ftp_getdata()
1720 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()