home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume38 / libftp / part01 / FtpPort.c < prev    next >
C/C++ Source or Header  |  1993-07-13  |  371b  |  19 lines

  1. #include "FtpLibrary.h"
  2.  
  3. STATUS FtpPort(FTP *con,int a,int b,int c,int d,int e,int f)
  4. {
  5.   String cmd;
  6.   int i;
  7.  
  8.   sprintf(cmd,"PORT %d,%d,%d,%d,%d,%d",a,b,c,d,e,f);
  9.   if ( FtpSendMessage(con,cmd) == QUIT)
  10.     return QUIT;
  11.   if ( (i=FtpGetMessage(con,cmd)) == QUIT)
  12.     return QUIT;
  13.   
  14.   if ( ! FtpGood ( i , 200 , EOF ))
  15.     return EXIT(con,-i);
  16.  
  17.   return EXIT(con,i);
  18. }
  19.