Skip to Main Content
Windows Store App Development: C# and XAML
book

Windows Store App Development: C# and XAML

by Pete Brown
June 2013
Intermediate to advanced content levelIntermediate to advanced
624 pages
20h 56m
English
Manning Publications
Content preview from Windows Store App Development: C# and XAML

Chapter 18. A chat app using sockets

This chapter covers

  • Creating a socket server
  • Connecting to a socket server
  • Using TCP and UDP sockets

Higher-level networking approaches such as SOAP and RESTful services are great when you don’t need to count milliseconds or when communication is primarily one way. But what about those times when you need to perform near real-time control of, say, a robot? How about synchronizing character or object movement for a game? Those are all performance-critical, often bidirectional, and sometimes peer-to-peer communications scenarios.

When apps need to communicate across a network as quickly and efficiently as possible, they use sockets. Socket communication is two-way communication between, in most cases, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows 8.1 Apps with XAML and C# Unleashed

Windows 8.1 Apps with XAML and C# Unleashed

Adam Nathan
Pro Windows 8.1 Development with XAML and C#

Pro Windows 8.1 Development with XAML and C#

Jesse Liberty, Philip Japikse, Jon Galloway

Publisher Resources

ISBN: 9781617290947Publisher SupportPublisher WebsitePurchase LinkOther