Creates a new GW
Create a DRb::DRbSSLSocket
instance.
uri
is the URI
we are connected to. soc
is the tcp socket we are bound to. config
is our configuration. Either a Hash
or SSLConfig
is_established
is a boolean of whether soc
is currently established
This is called automatically based on the DRb
protocol.
Creates a new TimerIdConv
which will hold objects for keeping
seconds.
Creates a new StringInputMethod
object
Constructs the eigenvalue decomposition for a square matrix A
Creates and returns a new FTP
object. If a host
is given, a connection is made.
options
is an option hash, each key of which is a symbol.
The available options are:
Port number (default value is 21)
If options is true, then an attempt will be made to use SSL (now TLS) to connect to the server. For this to work OpenSSL
[OSSL] and the Ruby OpenSSL
[RSSL] extensions need to be installed. If options is a hash, it’s passed to OpenSSL::SSL::SSLContext#set_params
as parameters.
If true, TLS is used for data connections. Default: true
when options is true.
Username for login. If options is the string “anonymous” and the options is nil
, “anonymous@” is used as a password.
Password for login.
Account information for ACCT.
When true
, the connection is in passive mode. Default: true
.
open_timeout
Number of seconds to wait for the connection to open. See Net::FTP#open_timeout
for details. Default: nil
.
read_timeout
Number of seconds to wait for one block to be read. See Net::FTP#read_timeout
for details. Default: 60
.
ssl_handshake_timeout
Number of seconds to wait for the TLS handshake. See Net::FTP#ssl_handshake_timeout
for details. Default: nil
.
use_pasv_ip
When true
, use the IP address in PASV responses. Otherwise, it uses the same IP address for the control connection. Default: false
.
debug_mode
When true
, all traffic to and from the server is written to +$stdout+. Default: false
.
Creates an HTTP request object for path
.
initheader
are the default headers to use. Net::HTTP
adds Accept-Encoding to enable compression of the response body unless Accept-Encoding or Range
are supplied in initheader
.
Creates a new Net::IMAP
object and connects it to the specified host
.
options
is an option hash, each key of which is a symbol.
The available options are:
Port number (default value is 143 for imap, or 993 for imaps)
If options is true, then an attempt will be made to use SSL (now TLS) to connect to the server. For this to work OpenSSL
[OSSL] and the Ruby OpenSSL
[RSSL] extensions need to be installed. If options is a hash, it’s passed to OpenSSL::SSL::SSLContext#set_params
as parameters.
open_timeout
Seconds to wait until a connection is opened
The most common errors are:
Connection refused by host
or an intervening firewall.
Connection timed out (possibly due to packets being dropped by an intervening firewall).
There is no route to that network.
SocketError
Hostname not known or other socket error.
Net::IMAP::ByeResponseError
The connected to the host was successful, but it immediately said goodbye.
Creates a new POP3
object.
address
is the hostname or ip address of your POP3
server.
The optional port
is the port to connect to.
The optional isapop
specifies whether this connection is going to use APOP
authentication; it defaults to false
.
This method does not open the TCP connection.
Creates a new Net::SMTP
object.
address
is the hostname or ip address of your SMTP
server. port
is the port to connect to; it defaults to port 25.
This method does not open the TCP connection. You can use SMTP.start
instead of SMTP.new
if you want to do everything at once. Otherwise, follow SMTP.new
with SMTP#start
.
Creates a new URI::FTP
object from generic URL components with no syntax checking.
Unlike build(), this method does not escape the path component as required by RFC1738; instead it is treated as per RFC2396.
Arguments are scheme
, userinfo
, host
, port
, registry
, path
, opaque
, query
, and fragment
, in that order.
Just initializes all instance variables.
Create a PrettyPrint::SingleLine
object
Arguments:
output
- String
(or similar) to store rendered text. Needs to respond to ‘<<’
maxwidth
- Argument position expected to be here for compatibility.
This argument is a noop.
newline
- Argument position expected to be here for compatibility.
This argument is a noop.