Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------¦remote¦-----satellite link-----¦core¦---------
- port 6999 port 7000 port 6999
- //remote.js
- var util=require('util');
- var net=require('net');
- var input=net.createServer(function(inputStream){
- inputStream.on('data', function(data) {
- util.puts(data);
- });
- var output=net.createServer(function(outputStream) {
- outputStream.pipe(inputStream, {end: false});
- outputStream.on('data',function(dta){
- util.puts(dta);
- });
- });
- output.listen(7000, '172.16.1.224');
- });
- input.listen(6999, '172.16.1.224');
- net.createServer(function(from) {
- var to = net.createConnection({
- host: addr.to[2],
- port: addr.to[3]
- });
- from.pipe(to);
- to.pipe(from);
- }).listen(addr.from[3], addr.from[2]);
- require httpmodule
- var http = require('http').createServer;
- app.listen(3000);
Add Comment
Please, Sign In to add comment