Method: Nmsg::Socket#shutdown

Defined in:
ext/nmsg/rubyext.c

#shutdown(how) ⇒ Object



237
238
239
240
241
242
243
244
245
# File 'ext/nmsg/rubyext.c', line 237

VALUE rb_socket_shutdown(VALUE self, VALUE how) {
    GET_SOCKET(self);
    if (S && S->fd > 0) {
        nn_shutdown(S->fd, NUM2INT(how));
        S->fd = -1;
    }

    return self;
}