IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Mike Stefanik on February 23, 2006, 05:27:13 AM

Title: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Mike Stefanik on February 23, 2006, 05:27:13 AM
I've uploaded the first build of SocketTools for Aurora. For those of you who aren't familiar with SocketTools, it's a collection of components (specifically in this case, a collection of classes for Aurora) that allow you to easily do things like upload and download files, compose and send email, execute remote commands and so on.

This is just the initial release, and only a few of the classes are ready; I'll continue to work on updating it and eventually all of the documented classes will be available. Right now, it includes the CDnsClient, CFtpClient, CHttpClient and CSocketWrench classes (SocketWrench is a general purpose TCP/IP class that wraps the Windows Sockets API). It includes a help file and some example programs. You can download it from here (it's completely free, but keep in mind it is a pre-release version):

[Download link removed, beta period expired]

The installer knows how to put all of the files in the right place, so all you should need to do is #include "cstacl45.inc" in your program and you're good to go. The documentation, while not complete, does have a fairly reasonable Developer's Guide with an introduction to the various protocols, and overview of the classes and so on.

Any feedback, bugs, etc. on either the code or the documentation is welcome and if you have any technical questions on how to do something, just post here and I'll be sure to follow up.

Just as a quick example, here's how you could download a file with the CFtpClient class using a given URL:


#autodefine "off"
#include "cstacl45.inc"

global sub main
{
CFtpClient ftpClient;
string strLocalFile = "readme.txt";
string strURL = "ftp://ftp.w3.org/pub/doc/README.txt";

if (ftpClient.DownloadFile(strLocalFile, strURL))
{
writeln("Download was successful!\n");
}
else
{
string strError;

ftpClient.GetErrorString(0, strError);
writeln("Download failed, " + strError + "\n");
}

while GetKey() = "";
return;
}


Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Mike Stefanik on February 23, 2006, 11:05:26 PM
Paul found a problem with one of the samples and suggested a minor change to the install, so I've re-uploaded it. You can (re)download using the same URL I posted above.
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: John S on February 24, 2006, 10:39:40 AM
First of all, is this something that should go in the public area?  Is it an add-on library or is it intended to become integrated into Aurora?

Some of what you guys are doing is really terrific stuff and perhaps should be public.

Secondly, I thought socket tools were used by auto mechanics to fix cars.  :P
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Mike Stefanik on February 24, 2006, 10:46:27 AM
It's an add-on library. SocketTools started out as a collection of VBXs (Visual Basic controls) back in the mid 90s and has grown since then to provide support for a lot of different languages. And I did post in the public area, in case folks were interested in taking a look.
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Mike Stefanik on March 05, 2006, 10:58:40 PM
An updated build of SocketTools has been released, version 4.50.1186. You should uninstall the previous version before installing this update, and make sure that you have the Alpha 2 Rev 9 version of the compiler installed. [Download link removed, beta period expired]

This new version addresses some minor bugs and adds several new classes and examples:

Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Mike Stefanik on March 22, 2006, 10:18:51 PM
I've posted an update for the current version of the compiler (Alpha 2 Rev 11). You can download it using the same link as above.
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Protected on April 11, 2006, 07:48:22 AM
Is SocketTools going to work (/does it work) with the linux compiler?
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Mike Stefanik on April 11, 2006, 10:07:43 AM
Right now they're Windows only. Linux support is something that I'll consider down the road.
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Steven Picard on April 19, 2006, 08:32:56 PM
Mike,

This is looking good!  Great work!

-Steven
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Mike Stefanik on April 19, 2006, 09:31:47 PM
Thanks, I'm working on cleaning up the remaineder of the classes (MIME, IMAP4, POP3, SMTP and RSH) and I'll post another update. Then the work on updating the documentation starts, which is going to be so much fun. :)
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Steven Picard on April 19, 2006, 09:55:31 PM
BTW, I tried your socket tools 1-2 years ago (can't remember) for VB. I still get your newsletter in.  :)
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Mike Stefanik on April 19, 2006, 10:00:51 PM
If you get a chance to test out the Aurora classes, let me know what you think. I'm always open to suggestion.
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Rock Ridge Farm (Larry) on August 24, 2007, 07:23:26 AM
Mike - did you ever add sftp?
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Mike Stefanik on August 24, 2007, 09:55:13 AM
We're in the process of adding SSH/SFTP support now for the next major release. However, as I mentioned in the other thread, I'm no longer working on Aurora classes. Our Secure Library Edition would work (since they're standard DLLs that have an interface similar to the Windows API), however I imagine it would be out of the price range for most folks, particularly those using a freeware compiler.

The vast majority of our customers are corporate developers using Visual Studio (Visual Basic, Visual FoxPro, C#, C++) or Borland Developer Studio (primarily Delphi or C++). The other languages that have been popular are Clarion, PowerBuilder and PowerBASIC; they're all commercial languages, of course, primarily geared towards business applications.

EDIT: Thanks for pointing out this thread, I'll edit the previous posts to remove the inactive download links.
Title: Re: SocketTools Classes for Aurora (Internet Protocol Classes)
Post by: Ionic Wind Support Team on August 24, 2007, 10:05:43 AM
See my reply in the other thread Mike.