[Inet]

Gregor.Inet

Sunday, May 04, 2003

Gregor.Inet namespace

URLs

Offers a special URL class supporting multiple users (which can be saved to as well as initialized from Windows Internet Shortcut files).

Common Functionality

Then, there are many useful API constants, and some common functionality for the sub namespaces (Ftp, Http, Mail).

Gregor.Inet.Ftp namespace

An Object Model for FTP Sites

There's an FTP site object model (servers, directories, files) that allows using FTP data in a natural way. Operations, such as updating, reading and writing files, are executed with methods on these objects.

The FTP-related functionality is based on Win32 internet functions. See he discussion on the VBInet project (in the VB6 article group), which this assembly is based on, for more info (much of it still applies).

Asynchronous Operations

There are special extensions to Gregor.AppCore.CWorker that deal with asyncronous networking operations.

Gregor.Inet.Http namespace

GET

For now, this has just a class executing HTTP GET operations (delegating to System.Net web requests). It's used by WebEdit.

Gregor.Inet.Mail namespace

Sending Mail with Attachments

Lets you send e-mail messages with the user's default e-mail client. Two APIs are wrapped up here: MapiSendDocument (call CMailMessage.Send) and MapiSendMail (call CMailMessage.SendEx). You can specify recipients, attachments, the subject, and even the message text. WebEdit.NET uses this for exception reporting.