views:

112

answers:

1

Hi

Does any one have an example for ReceiveFromAsync works with regard to UDP? i couldn't find any sample code. I can find a few TCP sample but msdn say 'The ReceiveFromAsync method is used primarily to receive data on a connectionless socket'.

Thanks, Nick

A: 

Perhaps it might be easier to use UdpClient's async BeginReceive() method?

http://msdn.microsoft.com/en-us/library/system.net.sockets.udpclient.beginreceive.aspx

teflon19