Connecting across the Web
Competing against friends and family at home can be a lot of fun, but being able to broaden one's gaming horizons to the wider world can bring a whole other level of possibilities.
In addition to demonstrating how to get started with writing HTTP-enabled clients, we'll also have a peek at one possible approach for constructing a web service for use within Microsoft's IIS web server platform.
Getting ready
This example requires that the ASP.NET components of Visual Studio be installed, and that a single SpriteFont
file with the asset name of Info
is used.
How to do it...
Dive into the world of web communications by:
1. Creating a new ASP.NET Empty Solution with the project name of Server.Iis and the solution name of WebDemo.
2. Alter the Web.config file of the newly created project so all web traffic will be directed towards a single handler class:
<?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0...