IO::EndpointSourceOpenSSLSSLSocketForwarder

module SocketForwarder

Represents a module that forwards socket methods to the underlying IO object.

Definitions

def close_on_exec=(value)

Set whether the socket should be closed on exec.

Signature

parameter value Boolean

Whether to close on exec.

Implementation

def close_on_exec=(value)
	to_io.close_on_exec = value
end

def local_address

Get the local address of the socket.

Signature

returns Addrinfo

The local address.

Implementation

def local_address
	to_io.local_address
end

def remote_address

Get the remote address of the socket.

Signature

returns Addrinfo

The remote address.

Implementation

def remote_address
	to_io.remote_address
end

def wait(*arguments)

Wait for the socket to become ready.

Signature

parameter arguments Array

Arguments to pass to the underlying IO wait method.

returns IO, nil

The socket if ready, nil otherwise.

Implementation

def wait(*arguments)
	to_io.wait(*arguments)
end

def wait_readable(*arguments)

Wait for the socket to become readable.

Signature

parameter arguments Array

Arguments to pass to the underlying IO wait_readable method.

returns IO, nil

The socket if readable, nil otherwise.

Implementation

def wait_readable(*arguments)
	to_io.wait_readable(*arguments)
end

def wait_writable(*arguments)

Wait for the socket to become writable.

Signature

parameter arguments Array

Arguments to pass to the underlying IO wait_writable method.

returns IO, nil

The socket if writable, nil otherwise.

Implementation

def wait_writable(*arguments)
	to_io.wait_writable(*arguments)
end

def timeout

Get the timeout for socket operations.

Signature

returns Numeric, nil

The timeout value.

Implementation

def timeout
	to_io.timeout
end

def timeout=(value)

Set the timeout for socket operations.

Signature

parameter value Numeric, nil

The timeout value.

Implementation

def timeout=(value)
	to_io.timeout = value
end