Class Celluloid::IO::Socket
In: lib/celluloid/io/socket.rb
Parent: Object

Base class for all classes that wrap a ruby socket. @abstract

Methods

new   new   to_io   try_convert  

Included Modules

Constants

Constants

Constants = ::Socket::Constants   Compatibility

Public Class methods

@param socket [BasicSocket, OpenSSL::SSL::SSLSocket]

Celluloid::IO:Socket.new behaves like Socket.new for compatibility. This is is not problematic since Celluloid::IO::Socket is abstract. To instantiate a socket use one of its subclasses.

Tries to convert the given ruby socket into a subclass of GenericSocket. @param socket @return [SSLSocket, TCPServer, TCPSocket, UDPSocket, UNIXServer, UNIXSocket] @return [nil] if the socket can‘t be converted

Public Instance methods

Returns the wrapped socket. @return [BasicSocket, OpenSSL::SSL::SSLSocket]

[Validate]