24 VALUE remote_host, remote_serv;
25 VALUE local_host, local_serv;
27 rb_scan_args(argc, argv,
"22", &remote_host, &remote_serv,
28 &local_host, &local_serv);
void rb_define_singleton_method(VALUE obj, const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a singleton method for obj.
VALUE rsock_make_ipaddr(struct sockaddr *addr, socklen_t addrlen)
VALUE rsock_make_hostent(VALUE host, struct rb_addrinfo *addr, VALUE(*ipaddr)(struct sockaddr *, socklen_t))
struct rb_addrinfo * rsock_addrinfo(VALUE host, VALUE port, int family, int socktype, int flags)
VALUE rb_define_class(const char *name, VALUE super)
Defines a top-level class.
int rb_scan_args(int argc, const VALUE *argv, const char *fmt,...)
void rsock_init_tcpsocket(void)
register unsigned int len
VALUE rsock_init_inetsock(VALUE sock, VALUE remote_host, VALUE remote_serv, VALUE local_host, VALUE local_serv, int type)
void rb_define_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)