# File mrbgems/mruby-socket/mrblib/socket.rb, line 347 def _sockaddr_in(port, host) ai = Addrinfo.getaddrinfo(host, port, @af, Socket::SOCK_DGRAM)[0] ai.to_sockaddr end
# File mrbgems/mruby-socket/mrblib/socket.rb, line 316 def bind(host, port) Socket._bind(self.fileno, _sockaddr_in(port, host)) 0 end
# File mrbgems/mruby-socket/mrblib/socket.rb, line 321 def connect(host, port) Socket._connect(self.fileno, _sockaddr_in(port, host)) 0 end