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

Description (short)
Open smtp connection (HELO)
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
maxtries
retrydelay
host
Methods
public
GotGreeting (line)
GotHeloResponse (line)
OpenTry ()
smtpOpenSeq ()
Membervariables
public
tries

Options

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

Methods

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: line Text 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: line Text 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.


Membervariables

tries
The number of tries which were executed (and failed) so far.
initial value: 0

Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries