Ejemplo n.º 1
0
		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();
		}
Ejemplo n.º 2
0
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();
}
Ejemplo n.º 3
0
BasicIPVideoServer::~BasicIPVideoServer()
{
    removeRoute(_ipVideoRoute);
}
Ejemplo n.º 4
0
BasicFileUploadServer::~BasicFileUploadServer()
{
    removeRoute(_fileUploadRoute);
}
Ejemplo n.º 5
0
BasicPostServer::~BasicPostServer()
{
    removeRoute(_postRoute);
}
Ejemplo n.º 6
0
SimpleFileServer::~SimpleFileServer()
{
    removeRoute(&_fileSystemRoute);
}
Ejemplo n.º 7
0
SimpleSSEServer::~SimpleSSEServer()
{
    removeRoute(&_sseRoute);
    removeRoute(&_fileSystemRoute);
}
Ejemplo n.º 8
0
SimpleIPVideoServer::~SimpleIPVideoServer()
{
    removeRoute(&_ipVideoRoute);
    removeRoute(&_postRoute);
    removeRoute(&_fileSystemRoute);
}
Ejemplo n.º 9
0
/**
*   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;
}
Ejemplo n.º 10
0
BasicServer::~BasicServer()
{
    removeRoute(_fileSystemRoute);
}
Ejemplo n.º 11
0
BasicWebSocketServer::~BasicWebSocketServer()
{
    removeRoute(_webSocketRoute);
}