Browse files

Implement minimal listen-only UDT server socket.

Implemented a minimal `Server` object along the lines of the Node.js
`net` server object. The `Server` implements `listen`. It is able to
accept connections and create sockets. The `Server` also implements
`close`. After calling close, the `Server` will close the underlying UDP
socket when the last connection closes.

Currently, calling `close` does not prevent new connections from being
created. See #18.

Implemented a `connect` program using the C++ implementation of UDT.
This program will connect to a listening UDT socket and immediately send
a shutdown packet. This is used to test that our minimal listen-only
UDT server socket is able manage handshakes and shutdowns correctly.

Closes #14.
  • Loading branch information...
1 parent d4a6de9 commit fd3b17bba51d053fa3ca7adc277323201185848c @bigeasy committed Nov 8, 2012
Showing with 331 additions and 90 deletions.
  1. +2 −0 .gitignore
  2. +253 −89 index.js
  3. +15 −0 listen.js
  4. +3 −1 sdk/Makefile
  5. +58 −0 sdk/connect.cpp
@@ -1,5 +1,7 @@
Oops, something went wrong.

0 comments on commit fd3b17b

Please sign in to comment.