ReactOS 0.4.16-dev-252-g9ccafe8
main.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void InitConnectionInfo (void)
 
void CloseHost (void)
 
int main (int, const char **const)
 

Function Documentation

◆ CloseHost()

void CloseHost ( void  )

Definition at line 153 of file main.c.

154{
155 if (gConn.connected != 0) {
156 if (gConn.loggedIn != 0) {
158 }
160 }
161 gConn.ctrlTimeout = 3;
163} /* CloseHost */
void SaveUnsavedBookmark(void)
Definition: cmds.c:270
FTPConnectionInfo gConn
Definition: main.c:37
int FTPCloseHost(const FTPCIPtr cip)
Definition: open.c:523
void RunBatchIfNeeded(const FTPCIPtr cip)
Definition: spool.c:482
unsigned int ctrlTimeout
Definition: ncftp.h:143

Referenced by CloseCmd(), CommandShell(), OpenCmd(), and PostShell().

◆ InitConnectionInfo()

void InitConnectionInfo ( void  )

Definition at line 109 of file main.c.

110{
111 int result;
112
114 if (result < 0) {
115 (void) fprintf(stderr, "ncftp: init connection info error %d (%s).\n", result, FTPStrError(result));
116 exit(1);
117 }
118
122 UseTrace();
123 (void) STRNCPY(gConn.user, "anonymous");
124 gConn.host[0] = '\0';
128 gConn.leavePass = 1; /* Don't let the lib zap it. */
133 gConn.maxDials = (-1); /* Dial forever, until they hit ^C. */
135 gPrevRemoteCWD[0] = '\0';
137 if (gRedialDelay >= 10)
139 if ((gAutoAscii[0] == '\0') || (ISTREQ(gAutoAscii, "no")) || (ISTREQ(gAutoAscii, "off")) || (ISTREQ(gAutoAscii, "false"))) {
141 } else {
143 }
144} /* InitConnectionInfo */
#define STRNCPY(dst, src, n)
Definition: rdesktop.h:168
#define NULL
Definition: types.h:112
GLuint64EXT * result
Definition: glext.h:11304
#define stderr
Definition: stdio.h:100
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
const char * FTPStrError(int e)
Definition: errno.c:114
#define ISTREQ(a, b)
Definition: util.h:33
int gSOBufsize
Definition: pref.c:50
int gTransferTypeInitialized
Definition: main.c:39
int gUnprocessedJobs
Definition: spool.c:19
int gTransferType
Definition: main.c:40
int gConnTimeout
Definition: pref.c:24
FTPLibraryInfo gLib
Definition: main.c:36
int gDataPortMode
Definition: preffw.c:26
int gDebug
Definition: ls.c:32
int gXferTimeout
Definition: main.c:59
char gAutoAscii[]
Definition: pref.c:56
int gRedialDelay
Definition: main.c:60
char gPrevRemoteCWD[512]
Definition: main.c:47
int gCtrlTimeout
Definition: main.c:59
void SetDebug(int i)
Definition: trace.c:88
void UseTrace(void)
Definition: trace.c:97
#define kDefaultFTPBufSize
Definition: ncftp.h:314
int FTPInitConnectionInfo(const FTPLIPtr lip, const FTPCIPtr cip, size_t bufsize)
Definition: open.c:984
#define kTypeBinary
Definition: ncftp.h:354
#define exit(n)
Definition: config.h:202
char host[64]
Definition: ncftp.h:136
unsigned int xferTimeout
Definition: ncftp.h:141
unsigned int connTimeout
Definition: ncftp.h:142
size_t dataSocketRBufSize
Definition: ncftp.h:230
int dataPortMode
Definition: ncftp.h:152
FTPProgressMeterProc progress
Definition: ncftp.h:198
const char * asciiFilenameExtensions
Definition: ncftp.h:246
FILE * debugLog
Definition: ncftp.h:145
FILE * errLog
Definition: ncftp.h:146
size_t dataSocketSBufSize
Definition: ncftp.h:231
char user[64]
Definition: ncftp.h:137

Referenced by OpenCmd(), and PreInit().

◆ main()

int main ( int  ,
const char ** const   
)