UDP socket not receiving in Windows Service

A

Arkej

Hello,
I wasn't able to find an answer to this:
I have an application in .net that uses a socket in UDP mode to listen for
datagrams with address reuse option. I use socket.BeginReceiveFrom method
and it's working well in a console application. When the same class is used
in a windows service no udps get received no mather what account the service
runs on. And now the weird part - if I start the console app while the
service is running( another beginreceivefrom in another process) the service
starts receiveing the udps(and the console app too). If I terminate the
console app, the service receives no more udps.
Any hint or solution would be appretiated?

Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top