ext/iodine/iodine_connection.c
/**
 * Schedules the connection to be closed.
 *
 * The connection will be closed once all the scheduled `write` operations have
 * been completed (or failed).
 */
Schedules the connection to be closed.
The connection will be closed once all the scheduled `write` operations have
been completed (or failed).
Schedules the connection to be closed . The connection will be closed once all the scheduled ` write ` operations have been completed ( or failed ) .
static VALUE iodine_connection_close(VALUE self) {
  iodine_connection_data_s *c = iodine_connection_validate_data(self);
  if (c && !fio_is_closed(c->info.uuid)) {
    if (c->info.type == IODINE_CONNECTION_WEBSOCKET) {
      websocket_close(c->info.arg); 
    } else {
      fio_close(c->info.uuid);
    }
  }
  return Qnil;
}
static VALUE iodine_connection_close ( VALUE self ) { iodine_connection_data_s * c = iodine_connection_validate_data ( self ) ; if ( c && ! fio_is_closed ( c -> info . uuid ) ) { if ( c -> info . type == IODINE_CONNECTION_WEBSOCKET ) { websocket_close ( c -> info . arg ) ; } else { fio_close ( c -> info . uuid ) ; } } return Qnil ; }
Schedules the connection to be closed.
Schedules the connection to be closed .
/* sends WebSocket close packet */