tabs to spaces

This commit is contained in:
Feross Aboukhadijeh 2014-03-22 21:41:45 -07:00
parent c408cf6bb2
commit a2b4e5fff6
1 changed files with 5 additions and 5 deletions

View File

@ -27,13 +27,13 @@ var Protocol = require('bittorrent-protocol')
var net = require('net') var net = require('net')
net.createServer(function (socket) { net.createServer(function (socket) {
var wire = new Protocol() var wire = new Protocol()
socket.pipe(wire).pipe(socket) socket.pipe(wire).pipe(socket)
// handle handshake // handle handshake
wire.on('handshake', function (infoHash, peerId) { wire.on('handshake', function (infoHash, peerId) {
wire.handshake(new Buffer('my info hash'), new Buffer('my peer id')) wire.handshake(new Buffer('my info hash'), new Buffer('my peer id'))
}) })
}).listen(6881) }).listen(6881)
``` ```