Listening to UDP sockets

Burton Radons burton-radons at smocky.com
Fri Feb 23 01:07:01 PST 2007


I have this code:

	import std.socket;

	void main ()
	{
		auto address = new InternetAddress (3333);
		auto socket = new UdpSocket ();
		socket.bind (address);
		socket.listen (10);
	}

Which fails during execution on the "listen" line with "Error: Unable to 
listen on socket". Can anyone help? Replacing "Udp" with "Tcp" lets it 
work properly so perhaps this is a bug in "std.socket".


More information about the Digitalmars-d-learn mailing list