[Mono-dev] mono-services, possible bug
j.rauber at konzeptpark.de
Fri Sep 23 06:52:41 EDT 2005
i wrote a little udp-server, which recieves udp packets and logs
them into a file.
I implemented this server into a .net Service Project and it runs
fine after installing on any windows machine i tested.
When i start it on Suse 9.3 with mono 18.104.22.168 using mono-services it
starts but never recieves anything.
The code which is running in an backgrund thread is appended on to the
i debugged the code an the problem is that : soUdp.ReceiveFrom()
is never left, when i start the service on my console, without
it runs fine.
Any solution, explenation
private void StartReceive()
EndPoint remoteEP = new IPEndPoint(IPAddress.Any,0);
Socket soUdp = new Socket(AddressFamily.InterNetwork,
IPEndPoint localIpEndPoint = new IPEndPoint(IPAddress.Any,
Byte received = new Byte;
bytesReceived = soUdp.ReceiveFrom(received, ref
// It never comes that far
if (bytesReceived > 0)
message = new Byte[bytesReceived];
Array.Copy(received, 0, message,
String transmitted = "";
foreach (byte bt in message)
transmitted = transmitted +
String returningString = "OK";
Byte returningByte =
catch (SocketException se)
Virus checked by G DATA AntiVirusKit
Version: AVK 16.630 from 23.09.2005
More information about the Mono-devel-list