diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2013-10-28 11:58:43 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2013-10-28 11:58:43 +0400 |
commit | 66ea31befe1d62e8fba6d03709684eb773e3fedf (patch) | |
tree | e2f8aa55e024be180e3cb44d88c712cab7ed73ee /index.js | |
parent | efcf7de4e48f64f82bd69de341588e255581b9a8 (diff) | |
parent | eab8068c394668715c5eb8acbe385a4b98f930c6 (diff) |
Merge branch 'master' of github.com:feross/webtorrent
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -75,3 +75,25 @@ dht.findPeers(300) // }) // sock.sendTo('lol', 'localhost', 50963) + + + +// // Send TCP to echo server +// var string = require('./lib/string') +// var socket = require('./socket') + +// var listenSock = new socket.TCPListenSocket(1701) +// listenSock.on('connected', function(connSock) { +// console.log('Connection opened from ' + connSock.host + ':' + connSock.port) +// connSock.write('You are connected!') +// connSock.on('data', function (data) { +// console.log('Got data: ' + bops.to(data)) +// }) +// }) + +// var clientSock = new socket.TCPSocket('127.0.0.1', 1702) +// clientSock.on('data', function (data) { +// console.log('Got data: ' + bops.to(data)) +// }) + +// clientSock.write('hello, world!') |