Class: Libuv::TCP::SocketBase
- Includes:
- Resource
- Defined in:
- lib/libuv/tcp.rb
Instance Method Summary collapse
- #bind ⇒ Object
- #connect(callback) ⇒ Object
- #connect_req ⇒ Object
-
#initialize(loop, tcp, ip, port) ⇒ SocketBase
constructor
A new instance of SocketBase.
Methods included from Resource
#check_result, #check_result!, #resolve, #to_ptr
Constructor Details
#initialize(loop, tcp, ip, port) ⇒ SocketBase
Returns a new instance of SocketBase.
318 319 320 321 |
# File 'lib/libuv/tcp.rb', line 318 def initialize(loop, tcp, ip, port) @tcp, @sockaddr = tcp, ip_addr(ip, port) @loop = loop end |