If the client makes a request, let's say this is an initial request to a resource that the client knows nothing about. It goes along and does a little something like this:
GET /foo HTTP/1.1
Accept: text/html
/** | |
* Module dependencies. | |
*/ | |
var pkg = require('../package'); | |
var env = process.env.NODE_ENV || 'development'; | |
/** | |
* Return setting `name`. | |
* |
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
IP Addresses identify both a network as well as host on a network. Depending on the class of a network, certain amount of bits in the IP (32 bits overall) are allocated for network adressing and the rest is for: adressing the host on the network.
Furthermore, looking at the IP itself, you can tell which class of IP it is, using the following rules: