|
lib3k 0.1a | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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(<Number> port)
port - The port number Simpiti will be listening for connections. By default port 25 is used.
| Method Detail |
void flush()
Array getConnections()
Boolean isStarted()
Boolean isStopped()
void setMessageCallback(<Object> handler, <String> method)
handler - The object used as context
method - The name of the method contained by the handler object that should be executed
Thread start()
void stop()
Object toString()
<static> Object parseMessage(message)
|
lib3k 0.1a | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||