Download FCE Reference Manual (all languages)

Transcript
2.2 fceAttach Initializes FTP Client Engine
SYNTAX
fceAttach(NbrChans, KeyCode)
NbrChans : (I) Number of channels or threads.
KeyCode : (L) Registration key code.
REMARKS
The fceAttach function must be the first FCE call made. Pass the maximum number of channels or
threads that will be in use. Use NbrChans = 1 for non-threaded applications.
The 'Chan' parameter for subsequent calls to FCE functions must be in the range of 0 to NbrChans.
Up to 32 threads (numbered from 0 to 31) can be started, each of which can be connected to a different
FTP server and run independently.
When FCE is registered, you will receive a 'KeyCode' that matches the 'KeyCode' within the registered
DLL. For the evaluation version, the keycode is 0. See file KEYCODE.
RETURNS
Return < 0 : An error has occurred. Call fceErrorText.
EXAMPLES
All example programs call fceAttach.
C/C++ Example
// Initialize FCE (look in KEYCODE.H for FCE_KEY_CODE)
fceAttach(1, FCE_KEY_CODE);
BASIC Example
' Initialize FCE (look in KEYCODE.BAS for FCE_KEY_CODE)
Code = fceAttach(1, FCE_KEY_CODE)
ALSO SEE
fceRelease.
7