Telnet::Descriptor
Descriptor class wraps an IO object and provides a parser for telnet protocol through the Parser class. It also contains the IO loop for reading data from the socket when it is a client type. The IO loop is started in its own fiber when the connection is established.
Constants
Constructors
Class methods
Instance methods
Connect to a remote server
Descriptor ends up calling TCPSocket#connect to establish the connection and we are wrapping the call so
we can set @connected to true if the connection is successful.
address is the address of the remote server
port is the port to connect on (default is 23)
If the descriptor is a Telnet::Client instance this allows us to know if we're connected to a server yet.
This is not used by a server connection. The server connection status is determined by TCPSocket#closed?