Net::NNTP::Socket
Inherits Reference < Object
Constants
CRLF = "\r\n"
DOUBLE_P = ".."
EOT = ".#{CRLF}"
Constructors
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)
SourceInstance methods
<<(val)
Sourceclose
Sourceclosed?
Sourceflush
Sourcegets
Sourceopen
Sourceopen_timeout
Seconds to wait while attempting to open a connection. If the connection cannot be opened within this time, a TimeoutError is raised.
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.
read_timeout
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.
recv_response
Sourcerecv_response_text(resp)
Sourceresponse_text_buffer
Sourcesend(fmt, *args, quiet = false)
Sourcesocket
Sourcessl_context
Sourcessl_context=(ssl_context : OpenSSL::SSL::Context::Client)
Sourcessl_socket
Sourcessl_socket=(ssl_socket : OpenSSL::SSL::Socket::Client | Nil)
Sourcetcp_socket
Sourcetcp_socket=(tcp_socket : TCPSocket | Nil)
Sourceuse_ssl
Sourceuse_ssl=(use_ssl : Bool)
Source