class Net::NNTP::Socket
- Net::NNTP::Socket
- Reference
- Object
Defined in:
net/nntp/socket.crConstant Summary
-
CRLF =
"\r\n"
-
DOUBLE_P =
".."
-
EOT =
".#{CRLF}"
Constructors
Instance Method Summary
- #<<(val)
-
#address : String
The address of the NNTP server to connect to.
- #close
- #closed?
- #flush
- #gets(**args)
- #open
-
#open_timeout : Int32
Seconds to wait while attempting to open a connection.
-
#open_timeout=(open_timeout : Int32)
Seconds to wait while attempting to open a connection.
-
#port : Int32
The port number of the NNTP server to connect to.
-
#read_timeout : Int32
Seconds to wait while reading one block (by one read(2) call).
- #recv_response : Net::NNTP::Response
- #recv_response_text(resp)
- #response_text_buffer : Array(String)
- #send(fmt, *args, quiet = false)
- #socket : TCPSocket | OpenSSL::SSL::Socket::Client
- #ssl_context : OpenSSL::SSL::Context::Client
- #ssl_context=(ssl_context : OpenSSL::SSL::Context::Client)
- #ssl_socket : OpenSSL::SSL::Socket::Client | Nil
- #ssl_socket=(ssl_socket : OpenSSL::SSL::Socket::Client | Nil)
- #tcp_socket : TCPSocket | Nil
- #tcp_socket=(tcp_socket : TCPSocket | Nil)
- #use_ssl : Bool
- #use_ssl=(use_ssl : Bool)
Constructor Detail
def self.new(address : String, port : Int32 = 119, use_ssl : Bool = true, open_timeout : Int32 = 30, read_timeout : Int32 = 60, ssl_context : OpenSSL::SSL::Context::Client | Nil = nil)
#
Instance Method Detail
def open_timeout : Int32
#
Seconds to wait while attempting to open a connection. If the connection cannot be opened within this time, a TimeoutError is raised.
def open_timeout=(open_timeout : Int32)
#
Seconds to wait while attempting to open a connection. If the connection cannot be opened within this time, a TimeoutError is raised.
def read_timeout : Int32
#
Seconds to wait while reading one block (by one read(2) call). If the read(2) call does not complete within this time, a TimeoutError is raised.