开发者

Program Pocket PC to talk with Desktop via USB (.net)

开发者 https://www.devze.com 2022-12-13 01:42 出处:网络
How do my program on Pocket 开发者_如何学GoPC (.Net CF v3.5) can communicate with program on my Desktop (.Net application) ?

How do my program on Pocket 开发者_如何学GoPC (.Net CF v3.5)

can communicate with program on my Desktop (.Net application) ?

The Pocket PC is in cradle, connected via usb.

Update:

I know how to use socket to open TCP or send datagrams. I know how to use TcpClient/TcpListener.

I just don't know how to give configuration for opening sockets for this specific problem, or search for IP's to use TcpClient/TcpListener ... or ?

(i.e. how my app on pocket pc discovers the IP of the computer ?)


If you read Beej's Guide to Network Programming - Using Internet Sockets you'll understand the basics in order to exhange data between 2 sockets.

ActiveSync opens a new local IP in the PC. That allows a pocket device to communicate with a remote host with sockets through the USB!

(There is also an API for the ActiveSync but I never used it)

Edit: Probably I'm wrong about the ActiveSync. You don't need it. If a pocket device is connected on the USB the OS creates a temporary LAN, eg: under the domain 169.254.2.x, so that networking can be accomplished.

0

精彩评论

暂无评论...
验证码 换一张
取 消