Lines Matching defs:atp
18 #include <atalk/atp.h>
36 static int send_file(int fd, ATP atp, int lastfile);
153 ATP atp;
251 if (( atp = atp_open( ATADDR_ANYPORT, &addr )) == NULL ) {
321 cbuf[ 4 ] = atp_sockaddr( atp )->sat_port;
344 if ( atp_sreq( atp, &atpb, 1, ATP_XO ) < 0 ) {
355 if ( atp_rresp( atp, &atpb ) < 0 ) {
397 send_file( 0, atp, 1 );
406 send_file( fd, atp, ( optind == ac - 1 ) ? 1 : 0 );
425 if ( atp_sreq( atp, &atpb, 1, ATP_XO ) < 0 ) {
436 if ( atp_rresp( atp, &atpb ) < 0 ) {
469 static int send_file( int fd, ATP atp, int lastfile)
497 if ( atp_sreq( atp, &atpb, oquantum, ATP_XO ) < 0 ) {
539 FD_SET( atp_fileno( atp ), &fds );
578 if ( FD_ISSET( atp_fileno( atp ), &fds )) {
581 switch( atp_rsel( atp, &ssat, ATP_TRESP | ATP_TREQ )) {
586 if ( atp_rreq( atp, &atpb ) < 0 ) {
630 if ( atp_sresp( atp, &atpb ) < 0 ) {
661 if ( atp_rresp( atp, &atpb ) < 0 ) {
714 if ( atp_sreq( atp, &atpb, oquantum, ATP_XO ) < 0 ) {
758 if ( atp_sresp( atp, &atpb ) < 0 ) {