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