Questions tagged [router]

A router is a device that forwards data packets across multiple networks. DO NOT USE THIS TAG FOR QUESTIONS REGARDING URL ROUTING OR SINGLE PAGE APPLICATION ROUTERS

NOTE: This tag should not be used for questions on configuring or port forwarding applications on routers. Such questions are off topic for StackOverflow, and should be directed to SuperUser instead. Questions involving routing in single page applications should insetad be tagged with the appropriate routing library such as or . Question asking about routing server side applications should be tagged with and the appropriate framework.

Excerpt from Wikipedia on March 29th 2011:

A router is a device that forwards data packets across computer networks. Routers perform the data "traffic directing" functions on the Internet. A router is a microprocessor-controlled device that is connected to two or more data lines from different networks. When a data packet comes in on one of the lines, the router reads the address information in the packet to determine its ultimate destination. Then, using information in its routing table, it directs the packet to the next network on its journey. A data packet is typically passed from router to router through the networks of the Internet until it gets to its destination computer. Routers also perform other tasks such as translating the data transmission protocol of the packet to the appropriate protocol of the next network, and preventing unauthorized access to a network by the use of a firewall.

The most familiar type of routers are home and small office routers that simply pass data, such as web pages and email, between the home computers and the owner's cable or DSL modem, which connects to the Internet (ISP). However more sophisticated routers range from enterprise routers, which connect large business or ISP networks up to the powerful core routers that forward data at high speed along the optical fiber lines of the Internet backbone.

3818 questions
1
vote
3 answers

Can we run DPDK application on OpenWrt linux os?

We have developed a DPDK application which is working fine on Centos OS. We now have a requirement to run this on a router which has a simple OpenWrt. From the DPDK developers guide, they mention that it can be run on any LINUX but they have tested…
Abhinay
  • 75
  • 12
1
vote
1 answer

Retrieve SIP / Voip Password from Wi-Fi router

My network operator offer me VOIP service with free calls included, but it does not provide me VOIP credentials. So I can use VOIP with the phone connected to their router (which is configured for VOIP) but I can't configure VOIP on my mobile phone…
andQlimax
  • 778
  • 10
  • 24
1
vote
0 answers

How to make an automated dependency injector?

So I'm developing a framework and up until now I've been using a container that can be called statically throughout the application like so: $router = new Router; Container::set('router', $router); // this can now be called anywhere This then in…
Hypernami
  • 138
  • 1
  • 8
1
vote
1 answer

iron:router syntax Layout

I am using iron router to render a template within meteor framwork, as i was following probably an outdated tutorial, it seems to me there is a change in syntaxes which i could not figure out. layout.html
David
  • 11
  • 3
1
vote
1 answer

Angular 2 Routing from another branch (sub-route)

I have segmented my code into different folders such as /posts /events /users under each folder, there's a list component, a row component, and a detail component. the list will display the row component, when clicked, will load the detail…
Stone
  • 1,811
  • 2
  • 14
  • 14
1
vote
1 answer

Passing down passportjs to individual route file in ES6

I have a situation in my route file where in I need to import the instantiated passportjs variable into the route. const api = express.Router(); function isLoggedIn(req, res, next) { // if user is authenticated in the session, carry on …
Bazinga777
  • 5,140
  • 13
  • 53
  • 92
1
vote
2 answers

expressjs: Best way to handle multiple optional route params

I'm using nodejs Express. I would like to have a router that receive id or username as request param as below: router.get('/:id?/:username?', authMiddleware, function (req, res, next) { models .User .findAll({ where: { …
1
vote
0 answers

Sticky states in new component router?

We are using the component router in an angular 1.5 webapp and require certain "landing" views (navigated to via main nav) to maintain state when you navigate away and then come back. Basically the view and component need to be hidden and then…
flyer
  • 1,414
  • 12
  • 13
1
vote
1 answer

How can I handle GET data in koa

I am newbie in koa, and I am using koa-router. For me, the code is like: this.router.get('/user/test',function(){ debugger; }) then I visit localhost:3000/user/test?p=1&q=2, I just find that there seems no method for me to get…
CoolGuy
  • 357
  • 2
  • 16
1
vote
0 answers

Wget post data with text box that has randomly generated value?

I'm trying to use Wget to log in to my router and make a complete mirror of all the pages. The problem is, the router login page does not use the traditional "user" & "pass" ID for the text fields. It has a 'Password' and 'VmWpsPin' field. The ID…
FrostyX
  • 75
  • 1
  • 6
1
vote
0 answers

Router in Spring DSL not routing all the messages

I'm pushing in several file names to an input channel & creating an integration flow to read the names from this channel and route it to another channel based on the content of the file names. Eg-If the file name contains 'WORD' then direct it to…
1
vote
1 answer

Meteor: Get user information from user profile page

I have a Meteor project with a profile page system setup for each user which I created with the help of this question. How can I retrieve information from the user's profile for that page in the JS code for my Template.helpers? Eg. I have the…
Barry Michael Doyle
  • 9,333
  • 30
  • 83
  • 143
1
vote
1 answer

Laravel 5.2 - Can't add 'web' middleware to home page with a controller

When user has logged in, home page does not show logged details. Only show login and register links instead. To resolve that I've added web middleware in router file. This code works fine : Route::group(['middleware' => ['web']], function () { …
Eranda
  • 868
  • 1
  • 10
  • 27
1
vote
1 answer

Inject Router using Injector.resolveAndCreate inside a class

Is it possible to inject Router using Injector.resolveAndCreate() ? import {ExceptionHandler, Injectable, Inject,Injector} from 'angular2/core'; import {Router,ROUTER_PRIMARY_COMPONENT} from 'angular2/router'; @Injectable() export class…
Vinz and Tonz
  • 3,487
  • 5
  • 21
  • 32
1
vote
0 answers

Angular 2 Router and AuxRoutes

Can anybody offer me a bit of advice or even if this is possible with the router in Angular 2. I have an application with a menu which shows the various components in the router-outlet and these components can have child components which the router…
Foxy0669
  • 31
  • 2