Class | Celluloid::IO::TCPSocket |
In: |
lib/celluloid/io/tcp_socket.rb
|
Parent: | Stream |
TCPSocket with combined blocking and evented support
Convert a Ruby TCPSocket into a Celluloid::IO::TCPSocket DEPRECATED: to be removed in a future release @deprecated Use {Celluloid::IO::TCPSocket#new} instead.
@overload initialize(remote_host, remote_port = nil, local_host = nil, local_port = nil)
Opens a TCP connection to remote_host on remote_port. If local_host and local_port are specified, then those parameters are used on the local end to establish the connection. @param remote_host [String, Resolv::IPv4, Resolv::IPv6] @param remote_port [Numeric] @param local_host [String] @param local_port [Numeric]
@overload initialize(socket)
Wraps an already existing tcp socket. @param socket [::TCPSocket]
Open a TCP socket, yielding it to the given block and closing it automatically when done (if a block is given)