lib3k 0.1a

Class Simpiti

Object
   |
   +--Simpiti

class Simpiti


Simpiti is a simple SMTP listener (because server would be exaggerated). By default it listens on the common SMTP port 25 and communicates with the basic set of commands as defined in RFC 821.
Defined in Simpiti.js


Nested Class Summary
<static class> Simpiti.Connection
 
Constructor Summary
Simpiti (<Number> port)
            Creates a new instance of the Simpiti class.
 
Method Summary
 void flush()
           Removes all closed connections from the list.
 Array getConnections()
           Returns the list of connections currently open.
 Boolean isStarted()
           Returns true if the listener is running.
 Boolean isStopped()
           Returns true if the listener is not running.
 void setMessageCallback(<Object> handler, <String> method)
           Sets the callback handler and method for further processing any mail message received by the listener.
 Thread start()
           Starts the Simpiti listener.
 void stop()
           Stops the Simpiti listener.
 Object toString()
           Returns a string representation of the listener.
<static> Object parseMessage(message)
           Parse a message retrieved by a Simpiti.Connection instance.

Constructor Detail

Simpiti

Simpiti(<Number> port)

Method Detail

flush

void flush()

getConnections

Array getConnections()

isStarted

Boolean isStarted()

isStopped

Boolean isStopped()

setMessageCallback

void setMessageCallback(<Object> handler, <String> method)

start

Thread start()

stop

void stop()

toString

Object toString()

parseMessage

<static> Object parseMessage(message)

lib3k 0.1a

Documentation generated by JSDoc on Sun Mar 4 00:51:24 2007