Module: FDPass

Defined in:
ext/fdpass.c

Defined Under Namespace

Classes: Client, Error, FD, Server

Class Method Summary collapse

Class Method Details

.client(path) ⇒ Object



12
13
14
# File 'ext/fdpass.c', line 12

static VALUE rb_fdpass_client(VALUE self, VALUE path) {
  return rb_funcall(rb_cFDPassClient, rb_intern("new"), 1, path);
}

.close_fd(fd) ⇒ Object



16
17
18
19
20
21
22
23
# File 'ext/fdpass.c', line 16

static VALUE rd_fdpass_close_fd(VALUE self, VALUE fd) {
  int ifd;

  ifd = NUM2INT(fd);
  close(ifd);

  return Qnil;
}

.server(path) ⇒ Object



8
9
10
# File 'ext/fdpass.c', line 8

static VALUE rb_fdpass_server(VALUE self, VALUE path) {
  return rb_funcall(rb_cFDPassServer, rb_intern("new"), 1, path);
}