Class | Celluloid::IO::Socket |
In: |
lib/celluloid/io/socket.rb
|
Parent: | Object |
Base class for all classes that wrap a ruby socket. @abstract
Constants | = | ::Socket::Constants | Compatibility |
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