This method Create a new Session object. 'Session' is abstract class.
This method create a new Session object and start session. If you call this method with block, Session object give itself to block and finish session when block returns.
This method start session. If you call this method when the session is already started, this only returns false without doing anything.
'port' and '*args' are specified in subclasses.
This method finish session. If you call this method before session starts, it only return false without doing anything.
true if session have been started
The version of Session class. It is a string like "1.0.3".
This method create new Protocol object. 'socket' must be ProtocolSocket. This method is abstract class.
This method finishes protocol.
This create new ProtocolSocket object, and connect to server.
This method closes socket.
a FQDN address of server
an IP address of server
connecting port number.
true if ProtocolSokcet have been closed already
This method send 'src'. ProtocolSocket read strings from 'src' by 'each' iterator. This method returns written bytes.
This method send 'src'. ProtocolSokcet read string from 'src' by 'each' iterator. This method returns written bytes.
This method writes 'str'. There has not to be bare "\r" or "\n" in 'str'.
This method writes 'src' as a mail. ProtocolSocket reads strings from 'src' by 'each' iterator.
This method read 'len' bytes and return the string.
This method read until find 'target'. Returns read string.
read until "\r\n" and returns it without "\r\n".
This method read until "\r\n.\r\n". At the same time, delete period at line head and final line ("\r\n.\r\n").
This method read until "\r\n.\r\n". This method resembles to 'read_pendstr', but 'read_pendlist' don't check period at line head, and returns array which each element is one line.
When this method was called with block, evaluate it for each reading a line.