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