[Pkg-javascript-commits] [node-ain2] 30/102: added a test server
Jonas Smedegaard
js at moszumanska.debian.org
Tue Apr 29 11:59:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-ain2.
commit 3e326e9b77e2b56a3a665215f4909b5ca14ecfff
Author: Patrick Huesler <patrick.huesler at gmail.com>
Date: Tue Sep 13 21:52:06 2011 +0200
added a test server
---
test/testServer.js | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/test/testServer.js b/test/testServer.js
new file mode 100644
index 0000000..48d2ddf
--- /dev/null
+++ b/test/testServer.js
@@ -0,0 +1,15 @@
+var dgram = require("dgram");
+
+var server = dgram.createSocket("udp4");
+
+server.on("message", function (msg, rinfo) {
+ console.log(msg.toString());
+});
+
+server.on("listening", function () {
+ var address = server.address();
+ console.log("server listening " +
+ address.address + ":" + address.port);
+});
+
+server.bind(3000);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-ain2.git
More information about the Pkg-javascript-commits
mailing list