method
gethostbyname
v1_9_1_378 -
Show latest stable
- Class:
TCPSocket
gethostbyname(p1)public
No documentation available.
static VALUE
tcp_s_gethostbyname(VALUE obj, VALUE host)
{
rb_secure(3);
return make_hostent(host, sock_addrinfo(host, Qnil, SOCK_STREAM, AI_CANONNAME),
tcp_sockaddr);
}