/*
 * If passed one argument, this is identical to Kgio::Socket.connect.
 * If passed two or three arguments, it uses its superclass method:
 *
 *   Socket.new(domain, socktype [, protocol ])
 */
static VALUE kgio_new(int argc, VALUE *argv, VALUE klass)
{
        if (argc == 1)
                /* backwards compat, the only way for kgio <= 2.7.4 */
                return stream_connect(klass, argv[0], 1);

        return rb_call_super(argc, argv);
}