Module: Async::IO

Defined in:
lib/async/io/socket.rb,
lib/async/io/stream.rb,
lib/async/io/generic.rb,
lib/async/io/version.rb,
lib/async/io/endpoint.rb,
lib/async/io/wrap/tcp.rb,
lib/async/io/ssl_socket.rb,
lib/async/io/tcp_socket.rb,
lib/async/io/udp_socket.rb,
lib/async/io/unix_socket.rb,
lib/async/io/binary_string.rb,
lib/async/io/protocol/line.rb

Defined Under Namespace

Modules: Protocol, ServerSocket, Wrap Classes: AddressEndpoint, BasicSocket, BinaryString, Endpoint, Generic, IPSocket, SSLServer, SSLSocket, SecureEndpoint, Socket, SocketEndpoint, Stream, TCPServer, TCPSocket, UDPSocket, UNIXServer, UNIXSocket

Constant Summary collapse

VERSION =
"1.2.1"
Address =
Addrinfo
SSLError =
OpenSSL::SSL::SSLError

Class Method Summary collapse

Class Method Details

.try_convert(io, &block) ⇒ Object

Convert a Ruby ::IO object to a wrapped instance:


27
28
29
# File 'lib/async/io/generic.rb', line 27

def self.try_convert(io, &block)
	Generic::WRAPPERS[io.class].wrap(io, &block)
end