views:

30

answers:

1

What would be the best way to transfer a string across a network from a windows mobile device(so .net) to a .net app running on a pc on the same wifi network?

Would normal sockets work or would i use something like a webrequest? The client can be any version of .net.

Thanks

+2  A: 

For application there is no matter what type of connection is used, because it is incapsulated inside net-related classes.

On desktop you may use

These classes allows you to map some URL like http://{PC-name}/somepath to code executed by your applcation.

On mobile device you may use some classes allows you to make request using that URL. Also if your desktop application publish web service or WCF service, you may add reference to this service to mobile application and get strongly-typed interface to operate with desktop application. It is preferred way as for me.

STO
Sockets it is then :)
Matt