Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2013-10-28 11:58:43 +0400
committerFeross Aboukhadijeh <feross@feross.org>2013-10-28 11:58:43 +0400
commit66ea31befe1d62e8fba6d03709684eb773e3fedf (patch)
treee2f8aa55e024be180e3cb44d88c712cab7ed73ee /index.js
parentefcf7de4e48f64f82bd69de341588e255581b9a8 (diff)
parenteab8068c394668715c5eb8acbe385a4b98f930c6 (diff)
Merge branch 'master' of github.com:feross/webtorrent
Diffstat (limited to 'index.js')
-rw-r--r--index.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/index.js b/index.js
index 1ffc3f9..5deb4a1 100644
--- a/index.js
+++ b/index.js
@@ -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!')