The C language samples are intended to be very simple programs giving you enough information to learn how to begin with the FTP Voyager SDK. Each sample C project contains a single C source file with the implementation: SampleC.c, SampleC-Listing.c, SampleC-XFer-One-Step.c, SampleC-XFer-Manual.c, and SampleC-Callback.c. For additional C samples, visit the Getting Started section to view several C examples to perform transfers, directory listings, and how to use callback functions.
The C++ sample program is intended to cover all of the functionality of the FTP Voyager SDK. Because it's so comprehensive, it can also be overwhelming. After mastering these samples, move on to the C++ sample to fully understand the FTP Voyager SDK API.
| SampleC.c | Simple C program that shows how to create and use an FVSDK_Session structure. See Getting Started - Overview. |
| SampleC-Listing.c | Connects to a server and prints information from a directory on the screen. See Getting Started - Listing. |
| SampleC-XFer-One-Step.c | Downloads a file using FVSDK_Download() to a local directory. See Getting Started - Transferring. |
| SampleC-XFer-Manual.c | Downloads a file manually, one packet at a time. See Getting Started - Transferring. |
| SampleC-Callback.c | Downloads a file from a server using FVSDK_Download() and uses callback functions for errors and transfer status. See Getting Started - Callback Functions. |
The coding style used by the FTP Voyager SDK and the C / C++ samples attempts to place meaningful comments on every line of logic. Tab stops should be set to 4 characters. Brackets are always placed on the line with the conditional operation and the closing bracket always identifies what's being closed. Additionally, the MFC style "Hungarian" naming convention is used to help identify the member types by looking at the member name.
Of course, your applications doesn't need to follow this style, however we are mentioning our style here so that in case you've never seen it before, you're aware of it. In addition, if your tab stops are not set to 4, columns and indentations will not align correctly.