sockaddr_in(p1, p2) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
sock_s_pack_sockaddr_in(VALUE self, VALUE port, VALUE host)
    struct addrinfo *res = sock_addrinfo(host, port, 0, 0);
    VALUE addr = rb_str_new((char*)res->ai_addr, res->ai_addrlen);

    OBJ_INFECT(addr, port);
    OBJ_INFECT(addr, host);

    return addr;
Register or log in to add new notes.