Skip to content

Instantly share code, notes, and snippets.

@piscisaureus
Created November 24, 2011 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piscisaureus/546b412734dca6d87388 to your computer and use it in GitHub Desktop.
Save piscisaureus/546b412734dca6d87388 to your computer and use it in GitHub Desktop.
D:\node3>node
> s = require('dgram').createSocket('udp4');
{ _handle:
{ lookup: [Function: lookup4],
socket: [Circular] },
_receiving: false,
_bound: false,
type: 'udp4',
fd: null }
> s.bind(80);
undefined
> s.bind(80);
undefined
>
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: bind EINVAL
at errnoException (dgram.js:314:11)
at dgram.js:123:15
at lookup (dgram.js:49:12)
at UDP.lookup4 [as lookup] (dgram.js:59:10)
at Socket.bind (dgram.js:120:16)
at repl:1:3
at REPLServer.eval (repl.js:80:21)
at repl.js:190:20
at REPLServer.eval (repl.js:87:5)
at Interface.<anonymous> (repl.js:182:12)
D:\node3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment