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
1 answer

Angular 2 upgrade to RC5 from RC4, Error: Bootstrap at least one component before injecting Router

Attempting upgrade to 2.0.0-rc.5 using Router at 3.0.0-rc.1. I have followed the upgrade instructions from the documentation (moving from RC4 which is working fine for me). I am getting this error, no idea what's going on: Unhandled Promise…
lcurrens
  • 29
  • 4
1
vote
0 answers

Undefined offset: 1 AltoRouting

I'm getting an error: Undefined offset: 1 This is the code. It gives the error on this line: list ($controller,$method) = explode("@", $match['target']); Full code:
JuNk
  • 11
  • 4
1
vote
1 answer

Express: How to get the `params` from the original URL

I have an endpoint: POST /:service/confirm. This is handled by index.js router.use("/:services", services); services.js router.post("/confirm", (req, res) => { console.log(req.params); }); I'm planning to get the params.services inside of…
jhnferraris
  • 1,361
  • 1
  • 12
  • 34
1
vote
2 answers

Extend Laravel Router

I implemented a role/permission system. Now I want to add a method to Laravel router so I can make something like this: Route::get('sales', 'SaleController@index')->allow('Salesman'); I know that I can use @can('Salesman') (View) and…
Alan
  • 2,559
  • 4
  • 32
  • 53
1
vote
1 answer

After clicking a link, URL changes but navigation is not commenced

I've just recently moved to ngrx's router from angular2's router. Also, I am using angular 2 rc4. my routes look like this: export const: Routes = [ {path: "appRoute1", component: "appComponent1", guards: [HashGuard, hasSelectedGuard]}, …
Dan Bachar
  • 149
  • 2
  • 12
1
vote
2 answers

How and where does SNMP get his traffic data?

since i havent found an answer to that on the net, im trying it here : I was wondering how SNMP get his traffic data on a router ? I am actually monitoring a router with 2 different way : - With snmp which seems to give me the exact number of…
1
vote
0 answers

Reloading of backbone.js page causes router to not work

I am using default route with a parameter and have set the pushState: true However when I refresh the page I get error in the route. Error response Error code 404. following is the code: var Backbone = require('backbone'), SellerProfileView =…
meena
  • 93
  • 3
  • 11
1
vote
1 answer

Accessing Router Config Page (Web UI/HTTP) in Code? How to?

Basically, i want to change settings in a routers settings page as found in common soho routers and i am unable to even get past the first step! that is, going to the page without prompting the user for their username and password (this is a must),…
Erx_VB.NExT.Coder
  • 4,838
  • 10
  • 56
  • 92
1
vote
2 answers

Angular2 passing data between two child components

I have a component with two childcomponents. I show one or the other with using the router with the router-outlet. I want to take form data inserted in the first child, and use it in the other child which I route to upon submitting the form. I…
Jeeveegee
  • 235
  • 2
  • 7
1
vote
1 answer

Angular2: Create route in the controller / component

in my route config I have a route with children set, something like this: { path: 'users', children: [ { path: ':id', component: UserDetailsComponent }, { path: '', component: UserListComponent } ] } now, in my…
DS_web_developer
  • 3,622
  • 13
  • 52
  • 83
1
vote
1 answer

AngularJS data will not load through ng-route

I am trying to get some data into a tab. My application uses ng-route, so here is my config code: app.config(['$routeProvider', function($routeProvider){ $routeProvider .when('/EventList',{ templateUrl:'html/eventsList.html', …
1
vote
0 answers

TypeError: Cannot read property 'path' of undefined in $http.get(...).sucess function

I have this login function with an $http.get. I am trying to get the view to change in case I get a success. The user should click login and it will call submitLogin() who should check with the server, who should send back a JSON with "success" plus…
1
vote
1 answer

Angular 2 rc4 with 3.0 router: how to get all route information efficiently

I'm using router 3.0.0-beta.1 on angular 2 rc4. I'm wondering how to get multiple parts of data on the current route. I need params, data and URL. All three of these parts are exposed on the route by observables. I came up with this messy code and I…
mvermand
  • 5,829
  • 7
  • 48
  • 74
1
vote
0 answers

Angular2: Double slash in url

Parent component: App @RouteConfig([ { path: '...', name: 'Home', component: HomeCmp }, { path: '/404', name: 'NotFound', component: Error404Cmp }, { path: '/*path', redirectTo: ['NotFound'] } …
1
vote
1 answer

How can i change my my URL with .htaccess on Symfony 2

I would like to change my url using only .htaccess, how can i change my url from this : http://s1rd-ubuntu-01/vpscraplist/web/app_dev.php/myproject/ to this http://vpscraplist/platform/ or this http://vpscraplist/ i have also more pages on my…