T ODAY ’ S A GENDA What is iNetwork? How to Install it Networking in a Nutshell Basic Code +...
-
Upload
kelley-harmon -
Category
Documents
-
view
222 -
download
0
Transcript of T ODAY ’ S A GENDA What is iNetwork? How to Install it Networking in a Nutshell Basic Code +...
TODAY’S AGENDAWhat is iNetwork?
How to Install itNetworking in a NutshellBasic Code + Templates
Examples
What is iNetwork?1
WHAT IS INETWORK?Message-Based Networking LibraryCreated by Sebastian BoringCross Platform and Cross Device
WHAT IS INETWORK?Message-Based Networking LibraryCreated by Sebastian BoringCross Platform and Cross Device–WPF and C#–Windows Phone 7– iOS (iPhone, iPad)–More to come (Java, etc.)
Installation2
Google: iLab
Cookbook
Networking in a Nutshell3
Server
ClientClient
Send Message
Receive Message
Relay Message
Modify Message
Any Questions?
It’ll make more sense soon,
I promise.
Basic Code + Templates4
BASIC CODEOnce you downloaded iNetwork, you will have access to the basic templates.
BASIC CODEYou will (often) have more than one project in your solution:
One for the server
One (or more) for the clients
Show Templates in Visual Studio
Examples5
Basic Chat Program
Synchronized Sliders
WHY SYNC SLIDERS?It’s a simple example that illustrates communication between both client and server
Instead of using slider values, this could be some phidget sensor information!
Synchronized Sliders:Phone Demo
Things to Note6
THINGS TO NOTE1. You can run more than one
program within the same instance of Visual Studio.
– Run server program– While server runs, go back to
Visual Studio– Select View -> Solution
Explorer– Now you can start a new
instance of the cl ient(s)
THINGS TO NOTEDrawback to running the same instance of Visual Studio:
Shared console, harder to debug through write line statements!
THINGS TO NOTE2. Network messages run on
a separate thread from the UI. If you want to change the UI, remember to invoke the dispatcher!
THINGS TO NOTEOn WPF
THINGS TO NOTEOn Silverlight (Windows Phone)
THINGS TO NOTE3. You will likely have to
change your IP Address in the code when you do your demos!
YOU SHOULD NOW KNOW
What is iNetworkHow to Install it + ResourcesA Bit on NetworkingiNetwork TemplatesIntermediate iNetwork Programming