TITANIUM_FUNCTION(View, removeRoute) { TITANIUM_ASSERT(arguments.size() == 1); auto _0 = arguments.at(0); TITANIUM_ASSERT(_0.IsObject()); removeRoute(static_cast<JSObject>(_0).GetPrivate<Route>()); return get_context().CreateUndefined(); }
AudioPortConfig::AudioPortConfig(QWidget* parent) : QFrame(parent) { setupUi(this); _selected = 0; selectedIndex = -1; connect(routeList, SIGNAL(itemSelectionChanged()), SLOT(routeSelectionChanged())); connect(newSrcList, SIGNAL(itemSelectionChanged()), SLOT(srcSelectionChanged())); connect(newDstList, SIGNAL(itemSelectionChanged()), SLOT(dstSelectionChanged())); connect(tracksList, SIGNAL(itemSelectionChanged()), SLOT(trackSelectionChanged())); connect(removeButton, SIGNAL(clicked()), SLOT(removeRoute())); connect(connectButton, SIGNAL(clicked()), SLOT(addRoute())); connect(btnConnectOut, SIGNAL(clicked()), SLOT(addOutRoute())); connect(song, SIGNAL(songChanged(int)), SLOT(songChanged(int))); routingChanged(); }
BasicIPVideoServer::~BasicIPVideoServer() { removeRoute(_ipVideoRoute); }
BasicFileUploadServer::~BasicFileUploadServer() { removeRoute(_fileUploadRoute); }
BasicPostServer::~BasicPostServer() { removeRoute(_postRoute); }
SimpleFileServer::~SimpleFileServer() { removeRoute(&_fileSystemRoute); }
SimpleSSEServer::~SimpleSSEServer() { removeRoute(&_sseRoute); removeRoute(&_fileSystemRoute); }
SimpleIPVideoServer::~SimpleIPVideoServer() { removeRoute(&_ipVideoRoute); removeRoute(&_postRoute); removeRoute(&_fileSystemRoute); }
/** * Ages a specific route */ int internAgeRoute(struct RouteTable* croute) { struct Config *conf = getCommonConfig(); int result = 0; // Drop age by 1. croute->ageValue--; // Check if there has been any activity... if( croute->ageVifBits > 0 && croute->ageActivity == 0 ) { // There was some activity, check if all registered vifs responded. if(croute->vifBits == croute->ageVifBits) { // Everything is in perfect order, so we just update the route age. croute->ageValue = conf->robustnessValue; //croute->ageActivity = 0; } else { // One or more VIF has not gotten any response. croute->ageActivity++; // Update the actual bits for the route... croute->vifBits = croute->ageVifBits; } } // Check if there have been activity in aging process... else if( croute->ageActivity > 0 ) { // If the bits are different in this round, we must if(croute->vifBits != croute->ageVifBits) { // Or the bits together to insure we don't lose any listeners. croute->vifBits |= croute->ageVifBits; // Register changes in this round as well.. croute->ageActivity++; } } // If the aging counter has reached zero, its time for updating... if(croute->ageValue == 0) { // Check for activity in the aging process, if(croute->ageActivity>0) { my_log(LOG_DEBUG, 0, "Updating route after aging : %s", inetFmt(croute->group,s1)); // Just update the routing settings in kernel... internUpdateKernelRoute(croute, 1); // We append the activity counter to the age, and continue... croute->ageValue = croute->ageActivity; croute->ageActivity = 0; } else { my_log(LOG_DEBUG, 0, "Removing group %s. Died of old age.", inetFmt(croute->group,s1)); // No activity was registered within the timelimit, so remove the route. removeRoute(croute); } // Tell that the route was updated... result = 1; } // The aging vif bits must be reset for each round... BIT_ZERO(croute->ageVifBits); return result; }
BasicServer::~BasicServer() { removeRoute(_fileSystemRoute); }
BasicWebSocketServer::~BasicWebSocketServer() { removeRoute(_webSocketRoute); }