ext/iodine/iodine_connection.c
/**
 * Returns the timeout / `ping` interval for the connection.
 *
 * Returns nil on error.
 */
Returns the timeout / `ping` interval for the connection.
Returns nil on error.
Returns the timeout / ` ping ` interval for the connection . Returns nil on error .
static VALUE iodine_connection_timeout_get(VALUE self) {
  iodine_connection_data_s *c = iodine_connection_validate_data(self);
  if (c && !fio_is_closed(c->info.uuid)) {
    size_t tout = (size_t)fio_timeout_get(c->info.uuid);
    return SIZET2NUM(tout);
  }
  return Qnil;
}
static VALUE iodine_connection_timeout_get ( VALUE self ) { iodine_connection_data_s * c = iodine_connection_validate_data ( self ) ; if ( c && ! fio_is_closed ( c -> info . uuid ) ) { size_t tout = ( size_t ) fio_timeout_get ( c -> info . uuid ) ; return SIZET2NUM ( tout ) ; } return Qnil ; }
Returns the timeout / `ping` interval for the connection.
Returns the timeout / ` ping ` interval for the connection .