S Shih

We are investigating moving some components of our system onto smartphone running Mobile 5 or 6. The first question is if it supports eventing. Say I have a server running somewhere on internet with a static IP. I put one component on a smartphone. When it "starts" somehow it "registers" itself with the server. The server then talks back to the component whenever is needed. Bottomline is that we need the server to initiate the communication like firing events to the device. I look around but can't find a firm answer to it. Thanks in adv.



Re: Smart Devices VB and C# Projects eventing on smartphone?

Zero Dai - MSFT

Dear Shih,

Although I'm not sure the specific technologies that your application applied to communication with mobile device, but of course you can achieve this.

For example, your server will use TCP protocal to communicate with your smart phone. You can use the following two classes.

  1. TcpListener: http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx
  2. TcpClient: http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx

(They are both supported in .NET Compact Framework 1.0 and 2.0.)

Thanks,

Zero Dai - MSFT






Re: Smart Devices VB and C# Projects eventing on smartphone?

S Shih

Cool. I will find some sample codes to play with. Thanks for the info.