Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Peer Communication > Peer Channel in Action

Peer Channel in Action

The example that will be used to show Peer Channel in action is an application for conducting a quiz in a classroom. In the scenario, each pupil has a computer program that can receive the questions in the quiz from a software application that the teacher has. The pupils respond to the quiz questions using their program, and their responses are transmitted to the teacher, who can grade the pupils’ answers as they come in, and transmit grades back to each individual class member. The teacher can also broadcast instructions to the entire class.

This scenario is not a good one in which to apply an instant-messaging solution. Besides the tedium involved in the teacher having to type out each question, the pupils’ application could do little more than simply show the pupil what the teacher typed. It would be better for the teacher’s application to transmit structured data to the pupils’ application, which could then meaningfully process the information that it received and display it accordingly. Of course, one could transmit strings of XML between the applications via an instant messaging API like the real-time communications client API, but then one would have to write code to parse the XML. As will become apparent, considerable effort will be saved when the Windows Communication Foundation’s Peer Channel is used to implement the solution.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint