www.webdeveloper.com
Results 1 to 4 of 4

Thread: [RESOLVED] Need an advanced internet book

  1. #1
    Join Date
    May 2008
    Posts
    55

    resolved [RESOLVED] Need an advanced internet book

    Hi, I can't find an advanced internet book for tcp firewall and scoket etc. It is hard to find such kind of book online.

    Please notice, I am not indicating a book such as how to programming with css and html etc. It doesn't help.

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,313
    Javascript does not cover such areas but Java does, perhaps you are confusing Javascript and Java
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

  3. #3
    Join Date
    May 2008
    Posts
    55
    No, maybe my question is not clear. Please see http://stackoverflow.com/questions/1...ing-javascript

    Also I want to learn proxy server programming skills from a book.
    Sample code in Javascript.
    Code:
    var http = require('http');
    
    http.createServer(function(request, response) {
      var proxy = http.createClient(80, request.headers['host'])
      var proxy_request = proxy.request(request.method, request.url, request.headers);
      proxy_request.addListener('response', function (proxy_response) {
        proxy_response.addListener('data', function(chunk) {
          response.write(chunk, 'binary');
        });
        proxy_response.addListener('end', function() {
          response.end();
        });
        response.writeHead(proxy_response.statusCode, proxy_response.headers);
      });
      request.addListener('data', function(chunk) {
        proxy_request.write(chunk, 'binary');
      });
      request.addListener('end', function() {
        proxy_request.end();
      });
    }).listen(8080);
    I do need a book with hands on exercises.

  4. #4
    Join Date
    Mar 2009
    Posts
    481
    The code you're quoting above is server side javascript, as in node.js. Google node.js. You can find sources and documentation there. Its great and its very powerful. You'll need to download it to use it, but its free. And the documentation on the main website is very good IMHO. As to books containing exercises, I have no idea.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles