Skip to main content

Network Communication

  • Chapter
Accelerated Silverlight 3
  • 167 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics