PDA

View Full Version : nxSDK - C/C++ SDK for ioFTPD


neoxed
05-14-2006, 08:17 PM
nxSDK is a development kit for software developers writing shared memory applications for ioFTPD in C and C++. It provides a high-level interface to all of the shared memory functions implemented in ioFTPD, such as:

Creating, renaming, and deleting users and groups.
Modifying user-file and group-file data structures.
Resolving group IDs to group names, and vice versa.
Resolving user IDs to user names, and vice versa.
Retrieving information about online users.
Kicking online users by their connection ID or user ID.
Flushing the directory cache in specific directories.
Reading and writing VFS ownership (uid/gid) and permissions (chmod).
Download:

http://www.inicom.net/pages/en.ioftpd-scripts.php?id=220

neoxed
05-14-2006, 08:48 PM
I have a few ideas for future versions, if anyone else has any please share them with me.

- Parameter checking in release builds.
- Set Windows error codes on success and failure (SetLastError/GetLastError).
- A Io_GetOnlineDataEx function, that would resolve user names and look-up group names (saves a lot of work since Io_GetOnlineData leaves this to the caller).

neoxed
05-15-2006, 12:50 AM
Just posted v0.2.0, I had to make some backwards incompatible changes so I decided to post it ASAP.

NEW: Improved function documentation.
NEW: Io_GetOnlineDataEx function to retrieve extended online information.
CHG: Renamed several online types and constants for consistency.
ONLINEDATA_ROUTINE to Io_OnlineDataProc
ONLINEDATA_CONTINUE to IO_ONLINEDATA_CONTINUE
ONLINEDATA_STOP to IO_ONLINEDATA_STOP
CHG: Simplified the "who" example application.

neoxed
05-16-2006, 12:51 PM
I just posted v0.3.0 - adds parameter checking and more example applications.

NEW: Example application for adding or removing credits from a user.
NEW: Example application for retrieving information about ioFTPD.
NEW: Function arguments are validated in both release and debug builds.
NEW: nxSDK library no longer links against C runtimes (only 9KB now).
NEW: System error codes are set on failure (retrieved with GetLastError).
CHG: Function return types changed; recompile your applications.
Io_GetOnlineData from void to BOOL.
Io_KickConnId from void to BOOL.
Io_KickUserId from void to BOOL.
Io_ShmFree from void to BOOL.
CHG: Improved comments in example applications.

Linkster
05-16-2006, 05:15 PM
neoxed, I just wanted to thank you personally for your amazing contributions to the ioftpd community. So...what is your schedule like? :)

neoxed
05-16-2006, 07:40 PM
Thank you.

I have a part-time job in the mornings and nothing during the summer (since I have a surgical operation that will keep me off my feet for July and maybe August). So I'll be stuck at home, coding ;) . I'd say my schedule is fairly open, any reason you ask? hehe

FTPServerTools
05-17-2006, 04:11 AM
Nice work..