class

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)
Source

Instance methods

<<(val)
Source
address

The address of the NNTP server to connect to.

Source
close
Source
closed?
Source
flush
Source
gets
Source
open
Source
open_timeout

Seconds to wait while attempting to open a connection. If the connection cannot be opened within this time, a TimeoutError is raised.

Source
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.

Source
port

The port number of the NNTP server to connect to.

Source
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.

Source
recv_response
Source
recv_response_text(resp)
Source
response_text_buffer
Source
send(fmt, *args, quiet = false)
Source
socket
Source
ssl_context
Source
ssl_context=(ssl_context : OpenSSL::SSL::Context::Client)
Source
ssl_socket
Source
ssl_socket=(ssl_socket : OpenSSL::SSL::Socket::Client | Nil)
Source
tcp_socket
Source
tcp_socket=(tcp_socket : TCPSocket | Nil)
Source
use_ssl
Source
use_ssl=(use_ssl : Bool)
Source