On Mon, 11 Mar 2013 17:15:18 GMT, Vidar Wahlberg wrote:
Playing around a bit with listenTcp() i get the following error when trying to listen to all interfaces:
object.Exception@/home/canidae/projects/vibe.d/source/vibe/core/drivers/libevent2.d(230): Error binding listening socket
If I specify which interface to listen to then it works fine, it's listening to 0.0.0.0 libevent2 does not seem to fancy.
Here's app.d:
import vibe.d; shared static this() { listenTcp(10101, conn => conn.write(conn)); }
I'm using DMD 2.062 on 64bit linux (arch) and pulled vibe.d from github moments before posting this.
It sounds like it could be https://github.com/rejectedsoftware/vibe.d/issues/8
That's a long standing issue, but up to now there was too many higher priority tasks, so it still isn't fixed.