home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume38
/
libftp
/
part01
/
FtpPort.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-13
|
371b
|
19 lines
#include "FtpLibrary.h"
STATUS FtpPort(FTP *con,int a,int b,int c,int d,int e,int f)
{
String cmd;
int i;
sprintf(cmd,"PORT %d,%d,%d,%d,%d,%d",a,b,c,d,e,f);
if ( FtpSendMessage(con,cmd) == QUIT)
return QUIT;
if ( (i=FtpGetMessage(con,cmd)) == QUIT)
return QUIT;
if ( ! FtpGood ( i , 200 , EOF ))
return EXIT(con,-i);
return EXIT(con,i);
}