Class: IOExt
- Inherits:
-
Object
- Object
- IOExt
- Defined in:
- lib/ioext.rb,
lib/ioext/version.rb,
ext/ioext/ioext.c
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"0.1.0"
- IOB_ENTRIES =
LONG2NUM(_IOB_ENTRIES)
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #maxstdio ⇒ Object
- #maxstdio=(newmaxfd) ⇒ Object
- #setmaxstdio(newmaxfd) ⇒ Object
Constructor Details
#initialize ⇒ Object
46 47 48 49 50 |
# File 'ext/ioext/ioext.c', line 46
static VALUE
rb_win_ioext_initialize(VALUE self)
{
return Qnil;
}
|
Instance Method Details
#maxstdio ⇒ Object
52 53 54 55 56 |
# File 'ext/ioext/ioext.c', line 52
static VALUE
rb_win_ioext_getmaxstdio(VALUE self)
{
return INT2NUM(_getmaxstdio());
}
|
#maxstdio=(newmaxfd) ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'ext/ioext/ioext.c', line 58
static VALUE
rb_win_ioext_setmaxstdio(VALUE self, VALUE newmaxfd)
{
DWORD ret = 0;
const int fdlimit = 2048;
ret = _setmaxstdio(min(NUM2INT(newmaxfd), fdlimit));
return INT2NUM(ret);
}
|
#setmaxstdio(newmaxfd) ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'ext/ioext/ioext.c', line 58
static VALUE
rb_win_ioext_setmaxstdio(VALUE self, VALUE newmaxfd)
{
DWORD ret = 0;
const int fdlimit = 2048;
ret = _setmaxstdio(min(NUM2INT(newmaxfd), fdlimit));
return INT2NUM(ret);
}
|