Contents tagged with Sockets
-
Code and Slides from DevConnections Las Vegas Talks
-
Creating a Silverlight 2 Client Access Policy Socket Server
Silverlight 2 provides built-in support for sockets which allows servers to push data to Silverlight clients. By using this feature clients can avoid polling the server on a timed basis to ensure that clients are kept up-to-date. If you're new to the socket features built-into Silverlight 2 you'll want to read my previous posts to get additional details about how data can be pushed from a server to a client:
-
Desert Code Camp Is This Saturday (May 31st)
-
Carl, Richard and Myself on .NET Rocks Talking About Silverlight 2
-
Orlando 2008 DevConnections Talks
-
Pushing Data to a Silverlight Client with Sockets: Part II
In Part 1 of this two part series on socket support in Silverlight 2 I discussed how a server could be created to listen for clients using classes in the System.Net.Sockets namespace. In that post the TcpListener class was used to listen for client connections and the client stream was accessed using the TcpClient class's GetStream() method. In this post I'll cover how a Silverlight client can connect to a server using sockets and receive data pushed by the server asynchronously.
-
Pushing Data to a Silverlight Client with Sockets: Part I
Silverlight 2 has built-in support for sockets which creates some interesting possibilities. If you've ever worked on a client-side application that needed to receive up-to-date data then you're probably used to solving the problem by polling. With polling the client contacts the server on a consistent, timed basis to see if any updates are available. ASP.NET AJAX provides a Timer control that makes this process easy and straightforward.