I am designing a pretty complex WPF application.
A relatively small part of the application is receiving some raw data from a simple iPhone app that I am writing as well.
The data transfer should only be possible when the two parts (the computer with the software installed and the iPhone) are connected to the same network (usually a wifi home network).
Now, what will be the best way implement the listening part of the desktop app ?
Do I have to simple implement a mini server and keep listening to a specific port ?
Isn’t it two big of an overhead ?
Note,
Although sending the data from the iPhone is only going to happen once every couple of hours, I want the application (as long as it open) to immediately respond when it gets the data.
One possibility would be to host a WCF service in your WPF Application. See WCF Getting Started Tutorial from MSDN.
Typically your application would define a service endpoint such as
with which your IPhone app would communicate. See also Scenario Samples : REST and POX