I want to send some data to my computer (i.e. 1). When I press a button on my Windows Phone 8 and recieve data on my phone. How do you make this simple program? I already made a server on the computer and the phone but is this the data that will pass through the WiFi TCP/IP socket? ? Thanks in advance.
I want to send some data to my computer (i.e. 1 ). When I
Share
Sockets for Windows Phone would be a good start. Since you’re on Windows 8 and Windows Phone 8, use the Windows.Networking.Sockets Windows Runtime API.
There are a number of sample apps as well though many are from the Windows Phone 7.5 vintage and use the older System.Net.Sockets.
Take a look though at Tim Laverty’s sample from his Build 2012 presentation: Windows Phone 8, Networking: Building Connected Apps. It contains a Socket Listener and Client for Windows Phone, but since its using the WinRT API is should be straightforward to use in Windows 8 as well.