tabs to spaces
This commit is contained in:
parent
c408cf6bb2
commit
a2b4e5fff6
10
README.md
10
README.md
|
@ -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)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue