Module: UV::TCP::SocketMethods
Instance Method Summary
collapse
Methods included from Resource
#check_result, #check_result!, #to_ptr
Instance Method Details
#bind ⇒ Object
109
110
111
|
# File 'lib/uv/tcp.rb', line 109
def bind
check_result! tcp_bind
end
|
#connect(callback) ⇒ Object
113
114
115
|
# File 'lib/uv/tcp.rb', line 113
def connect(callback)
check_result! tcp_connect(callback)
end
|
#initialize(loop, tcp, ip, port) ⇒ Object
105
106
107
|
# File 'lib/uv/tcp.rb', line 105
def initialize(loop, tcp, ip, port)
@loop, @tcp, @sockaddr = loop, tcp, ip_addr(ip, port)
end
|