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

How to use angularjs ng-outlet dynamically

From couple of days I'm working on angularjs app. After 2 days of brain storming now I got to know how to use angularjs's new router+components+ng-outlet stuff. Now, after moment of happiness one more strange problem came up. That is - In my app…
Suresh
  • 5,687
  • 12
  • 51
  • 80
1
vote
2 answers

Angular new router error Cannot read property 'path' of undefined

I'm trying to write an app in angularjs by using the new router. But, don't know what's i'm doing wrong. From two days i went through a lot of articles,videos but till now can't able to get a grip on this. Right now, i'm following this article -…
Suresh
  • 5,687
  • 12
  • 51
  • 80
1
vote
1 answer

Fixed delay with task executor

my proejct has a -spring integration fixed delay poller (5 min.) which gets bunch of records - sends it to the splitter, which splits the records and sends them to taskexector router channel with pool size as 2 at the output channel and send each…
1
vote
0 answers

Set max int value in Symfony routing

Consider the following Symfony2 routing snippet (yml): date: pattern: /{day}-{dutchMonthName} defaults: { _controller: bundle } requirements: day: \d+ dutchMonthName:…
Stefanius
  • 117
  • 1
  • 10
1
vote
1 answer

CakePHP 3 override default route

Since Router::promote(); has been removed in CakePHP 3, what should one be using to override routes set in Config/routes.php from a plugin? Say that i would want to overwrite $routes->connect('/', ['controller' => 'Pages', 'action' => 'display',…
JazzCat
  • 4,243
  • 1
  • 26
  • 40
1
vote
1 answer

Regex True Match Behavior

I'm trying to do a router with true match using regex but I'm always stuck in how routes are loaded. If I have routes like /:any /blog/:any /blog/category/:any The first route will always come true instead of using second route or third. $data =…
Filipe
  • 11
  • 2
1
vote
1 answer

What's the correct way to use Cakephp urls?

it's my first post here :) I'm having some difficulties with dealing with urls and parameters. I've gone through the router class api documentation over and over again and found nothing useful. First of all, I'd like to know if there is any…
jpeltoniemi
  • 5,320
  • 7
  • 24
  • 34
1
vote
1 answer

Passive WiFi detection system using WiFi router

As part of my project requirement I want to make a system which will detect all the WiFi devices in my router range either its connected or not, I did some research on it then I found something like wireshark ,kismate etc I just tried the wireshark…
Anshad Rasheed
  • 2,526
  • 1
  • 14
  • 32
1
vote
1 answer

How bittorrent or P2P works independently of the router settings?

This may be a silly question but I was googling a lot last days and I've just found related but not a direct answer to this. In order to express it better let me mention a comparison: If I setup an http server in a computer behind a router , I must…
1
vote
1 answer

Macaw Router class with Twig Template

I have decided to use Macaw Router Class for my simple projects, so just want to know How I can integrate Twig Template System with Macaw. Is there a way to do this?? Twig is running, macaw is running fine, But wen I try to do some thing like this,…
Salih K
  • 701
  • 2
  • 12
  • 31
1
vote
1 answer

Read router manufacturer, model and chipset

#!/usr/bin/env python from scapy.all import * ap_set = set() def PacketHandler(pkt): if pkt.haslayer(Dot11) and (pkt.type, pkt.subtype) == (0, 0) and pkt.addr2 not in ap_set: ap_set.add(pkt.addr2) print "AP…
0xRLA
  • 3,279
  • 4
  • 30
  • 42
1
vote
1 answer

sails.js dynamic bind and unbind routes

I want to dynamically during runtime of sailsjs add/remove routes. what is the way? I found a function to add route: sails.router.bind(path, target); and it will work but when I ant to unbind it, it does not work. sails.router.unbind(???);
1
vote
1 answer

Iron Router / Meteor - How can I pass data from the controller to the template?

I am working on a user profile page and I am trying to pass data from the controller to a template helper. Here's my controller: usersDetailController = RouteController.extend({ waitOn: function () { Meteor.subscribe('userProfileExtended',…
Trung Tran
  • 13,141
  • 42
  • 113
  • 200
1
vote
1 answer

Networks: Classless Inter Domain Routing

Can anyone help me out in my revision of networks by helping me understand this question and how to go about answering it? A router supporting variable length subnet masks and classless inter-domain routing (CIDR) has the following forwarding…
user2013520
  • 87
  • 1
  • 1
  • 6
1
vote
1 answer

Rails, proxy request to another url without starting an application

I have a Rails app running on e.g. example.com. Any request is processed by Rails router. There is public API on e.g. example.com/rest/2.0/session. API is done on PHP and is unrelated to main app. Is it possible to proxy requests to API bypassing…