Browse Subversion Repository
Contents of /trunk/ftp_passive.c
Parent Directory
| Revision Log
Revision 17 -
( show annotations)
( download)
( as text)
Wed Feb 25 13:47:38 2009 UTC
(15 years ago)
by hirohitohigashi
File MIME type: text/x-csrc
File size: 1536 byte(s)
Starting 2nd version of libOftp project. There are new designs.
| 1 |
/* |
| 2 |
liboftp: this is an FTP library to simplify the work to a Developer |
| 3 |
who want to work with FTP servers (RFC 959). |
| 4 |
|
| 5 |
Copyright (c) 2009 hirohito higashi. All rights reserved. |
| 6 |
This file is distributed under BSD license. |
| 7 |
*/ |
| 8 |
|
| 9 |
|
| 10 |
/***** Feature test switches ************************************************/ |
| 11 |
/***** System headers *******************************************************/ |
| 12 |
/***** Local headers ********************************************************/ |
| 13 |
#include "liboftp.h" |
| 14 |
|
| 15 |
|
| 16 |
/***** Constat values *******************************************************/ |
| 17 |
/***** Macros ***************************************************************/ |
| 18 |
/***** Typedefs *************************************************************/ |
| 19 |
/***** Function prototypes **************************************************/ |
| 20 |
/***** Local variables ******************************************************/ |
| 21 |
/***** Global variables *****************************************************/ |
| 22 |
/***** Signal catching functions ********************************************/ |
| 23 |
/***** Local functions ******************************************************/ |
| 24 |
/***** Global functions *****************************************************/ |
| 25 |
|
| 26 |
/****************************************************************************/ |
| 27 |
/*! ������������������������������������ |
| 28 |
* |
| 29 |
*@param ftp LIBOFTP��������������������� |
| 30 |
*@param flag ���������������������ON/OFF |
| 31 |
*@retval int 0 |
| 32 |
*@note |
| 33 |
*/ |
| 34 |
int ftp_passive( LIBOFTP *ftp, int flag ) |
| 35 |
{ |
| 36 |
ftp->flag_passive = flag? 1: 0; |
| 37 |
|
| 38 |
return 0; |
| 39 |
} |
|