8000 Adds libp2p interop tests by daviddias · Pull Request #8 · mafintosh/utp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Adds libp2p interop tests #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
sandbox
docs
tests/utp
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# utp

utp (micro transport protocol) implementation in node.
> utp (micro transport protocol) implementation in node.
It is available through npm

npm install utp

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

## What is utp?

utp (micro transport protocol) is a network protocol similar to tcp that runs on top of udp.
Expand Down
10 changes: 10 additions & 0 deletions examples/listen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var utp = require('..')

var server = utp.createServer(function (socket) {
console.log('new connection!')
socket.pipe(process.stdout)
})

server.listen(9090, function () {
console.log('uTP server is listening on port 9090')
})
Loading
0