Home
Get FSP - File Service Protocol Suite at SourceForge.net. Fast, secure and Free Open Source software downloads

Main
FSP Servers
FSP Software
FSP Downloads

FSP project
Testers needed
FSP Team
Open tasks
Bazaar

Mailing lists
Bug Tracker

FSP Documents
Purpose
History
Articles
Today
Future
INFO
FAQ Old | New
FSP Protocol
Quotes

FSP suite
Browse
Copyright
Changelog
Todo
Bazaar
Freshmeat page
Ohloh page

Java library
Browse
API
READ.ME
Changelog
Freshmeat page
Ohloh page

FSP proxy
Browse
READ.ME
Changelog
Freshmeat page

PyFSP
Browse

C library
Browse
README
NEWS
Changes
TODO
Freshmeat page
Ohloh page

Misc
Wizards vs CSH

FSP entry in
GNU dir
Wikipedia

Stats
CNW

My projects
FSP Client
Download Machine
Smart Cache
SC Loader
FSP Suite
Other programs

[CNW:Counter]

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.

Status

Release 0.1 is broken. Version 0.2 works okay. Version 0.3-0.5 have just some minor portability bugfixes. Version 0.6 added more security checks on received packets.