FSPLIB Library
Copyright
Copyright (c) 2003,2004 by Radim `HSN` Kolar
You may copy or modify this file in any manner you wish, provided
that this notice is always included, and that you hold the author
harmless for any loss or damage resulting from the installation or
use of this software.
What C FSP Library
FSP Library is independant implementation of FSP protocol written in C. It can be used in any application which needs to support FSP protocol. Using this library is a very simple, because it has its API modeled after libc.
FSPLIB API overview
Session management
You need to create session before doing anything else.
Functions: fsp_open_session, fsp_close_session.
fopen and friends
Standard functions for working on r/w data streams. FSP protocol do not supports read AND write access. FSP supports read OR write access to file.
Functions: fsp_fopen, fsp_fread, fsp_fwrite, fsp_fclose, fsp_fpurge, fsp_fflush, fsp_fseek, fsp_ftell, fsp_rewind.
Directory listing functions
Standard functions for directory listing.
Functions: fsp_opendir, fsp_readdir_r, fsp_telldir, fsp_seekdir, fsp_rewinddir, fsp_readdir, fsp_readdir_native, fsp_closedir.
Misc. functions
Common posix functions for file manipulation.
Functions: fsp_stat, fsp_mkdir, fsp_rmdir, fsp_unlink, fsp_rename, fsp_access.
FSP protocol specific functions
Functions: fsp_getpro, fsp_install, fsp_canupload;
Low level functions
Most people will not need them.
Functions: fsp_pkt_write, fsp_pkt_read, fsp_transaction.
Development Status
- Release 0.1 is broken.
- Release 0.2 works okay.
- Release 0.3-0.5 have just some minor portability bugfixes.
- Release 0.6 added more security checks on received packets.
- Release 0.9 fixed serious buffer overflow problem.