I want to write a Silverlight application that would be receiving UDP packets on a given port, e.g. 5004. Essentially I want:
byte[] data = new UdpClient(5004).Receive(ref endPoint);
What would be an equivalent of that code in Silverlight?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sockets are available as of Silverlight 2, though it doesn’t include the UdpClient.
System.Net.Sockets
http://weblogs.asp.net/mschwarz/archive/2008/03/07/silverlight-2-and-sockets.aspx