Abstract
So far, you’ve seen XAML and how to create user interfaces in Silverlight. The next major pieces of Silverlight relate to communicating with other systems and working with data (which we’ll delve into in the next chapter). The three main communication mechanisms Silverlight provides are services via Windows Communication Foundation (WCF), direct HTTP communication via the HttpWebRequest and WebClient classes, and raw communication using sockets. Silverlight 3 introduces some significant enhancements to WCF, including improved security and a binary binding. Two other interesting aspects related to networking were also introduced in Silverlight 3. First, Silverlight is now aware of when the network is available. This gives you the ability to gracefully handle a loss of network connectivity, perhaps queuing up what the user requested for when the network comes back alive. The other new aspect is the functionality for one Silverlight application to talk directly with another Silverlight application. Before we get to the specifics of networking, though, it’s important to understand cross-domain communication restrictions in Silverlight.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2009 Ashish Ghoda and Jeff Scanlon
About this chapter
Cite this chapter
(2009). Network Communication. In: Accelerated Silverlight 3. Apress. https://doi.org/10.1007/978-1-4302-2430-3_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2430-3_4
Publisher Name: Apress
Print ISBN: 978-1-4302-2429-7
Online ISBN: 978-1-4302-2430-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)