Am 04.02.2014 10:44, schrieb Sönke Ludwig:

Am 03.02.2014 16:54, schrieb Kelet:

On Mon, 03 Feb 2014 15:13:41 GMT, Kelet wrote:

module app;

import vibe.core.core;
import core.thread;

int main()
{
     auto udp = listenUDP(0);
     udp.connect("127.0.0.1", 31722);
     udp.send(cast(ubyte[])"Test");
     return runEventLoop();
}

Code just continually runs, does not terminate despite connecting and
sending if it can.

Dicebot told me that this is just the expected behavior. However,
without the runEventLoop(), it does not terminate on Linux but it
does on Windows. This is likely due to the different drivers being
used. Ultimately, I'd just like it to terminate after it sends the
packet while using a custom main.

The root cause is
#212. I'll look
into why it doesn't terminate even without the runEventloop().

This terminates fine for me on either Windows or Linux:

import vibe.core.net;

void main()
{
	auto udp = listenUDP(0);
	udp.connect("127.0.0.1", 31722);
	udp.send(cast(ubyte[])"Test");
}

Do you have anything in addition to this?