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')
|
||||
|
||||
net.createServer(function (socket) {
|
||||
var wire = new Protocol()
|
||||
socket.pipe(wire).pipe(socket)
|
||||
var wire = new Protocol()
|
||||
socket.pipe(wire).pipe(socket)
|
||||
|
||||
// handle handshake
|
||||
wire.on('handshake', function (infoHash, peerId) {
|
||||
wire.handshake(new Buffer('my info hash'), new Buffer('my peer id'))
|
||||
})
|
||||
wire.on('handshake', function (infoHash, peerId) {
|
||||
wire.handshake(new Buffer('my info hash'), new Buffer('my peer id'))
|
||||
})
|
||||
|
||||
}).listen(6881)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue