Mohan - 2005-07-25 6:25 AM
Hi,
Thanks for ur reply. i will explain in detail what i need. I am developing a client/server based application. my server is an iris camera and it has WinCE as its operatin system. and my application
(gui
) will be runing on a remote machine
(client
). now i need to communicate and control the camera through the client. i also need to do event handling, for example, any change in value of the registry is an event occurred in the server which has to be intimated to the client side. so i decided to use vc++.net as i said in my first mail. But will the commands of vc++.net be supported in the winCE operating system. so after reading a detailed reply, i hope u can answer my mail more related.
Thanks a lot.
Mohan, welcome! First off, a few stats:
1. Is your client also displaying the image from the iris camera or just controlling it?
2. Is the server and client connected via some means of network?
If you just want some means to communicate between a remote and server app, you don't necessarily need to use VC++.Net. But its ok if you use. It just means that your device needs to support CF.NET whereas if you just write your app in VC++ using one of the embedded VC tools, you only need to write and use standard libraries and communicate.
There are a few ways to allow server-client comms:
1. Event based using winsock
A possible way to do the communication is to use winsock. This way, you don't necessarily need to use VC++.NET. On the server end, you write a server app to listen on a port
(say 1033 or something larger than the standard ports
). Then on the client side, you write a client app to send/recv data to the server at that port
(1033
). This defines the client<->server comm for the client to send/recv commands to the server, ie control the server, receive status updates from the server.
2. Polling using HTTP calls
Another way is to setup a simple web server on the camera side and have an ASP/ASPX page to process incoming commands and to return status updates. The client side can be just a couple of web pages or a client app that makes HTTP calls to this ASP/ASPX page to either send commands or retrieve status updates and update its UI with the new status.
You can also use php or jsp on the server side if you want.