File 'net/smtp/open.cls' (part of 'Pool_Net')


Home | Packages | Files | Procedures | Classes | Keywords | External packages


Written by
Andreas Kupries
Description
Implements the sequencer to open a SMTP connection
Keywords
SMTP, Open connection, HELO command

Class 'smtpOpenSeq'

Superclasses
smtpSequencer
Options
helo, host, maxtries, retrydelay
Membervariables
tries
Methods
GotGreeting, GotHeloResponse, OpenTry, smtpOpenSeq

-helo
Specifies the string to use as argument for the HELO command sent to the demon after its greeting.
-host
Specifies the host the demon to connect to resides on. Defaults to 'localhost'.
-maxtries
Specifies the maximum allowed number of trials to connect. Defaults to 1.
-retrydelay
Specifies the time to wait (in milliseconds) after a failure before doing the next try. Defaults to 10 seconds.

tries
The number of tries which were executed (and failed) so far.

GotGreeting (line)

Called after the the demon sent a greeting message identifying itself. Now we identify ourselves by sending HELO with an appropriate argument.
Argument: lineText of response

GotHeloResponse (line)

Called after the demon reacted on HELO. Depending on the type of response the transaction completes with either success or failure.
Argument: lineText of response

OpenTry ()

The first action taken after the construction of the sequencer completes. Tries to get a socket refering to a connection to the server. In case of failure at most maxtries retries are made before giving up.

smtpOpenSeq ()

Constructor.


Generated by AutoDoc 2.1 at 02/20/1999, invoked by Andreas Kupries