The question and description has been edited to make the user understand well what i am trying to ask after getting 4 -votes.
I have a vps(Virtual dedicated server).
I have a desktop application in which i want notifications from the vps webserver.
i can write both c and php as a server side script if needed.
I thought server push mechanism would do that?
So what should i do?
i read that long opened connections and keep alive will be a load to the server
i know c, win32 api, php, winsock and php sockets.
is it just the programming technique pushing information which is called push technology?
i had been reading a lot of explanations in the internet but non had a wireframe kind of explanation and i dont know which libraries in c,php would do that...
what i am assuming with push technology is it is just a mechanism using the existing libraries (sockets) in any programming language if available (win32api, php) to get instant notification from a remote location.
If you don't want to use open connections, you have two choices:
1) Either you have a client application on your computer that frequently checks the server for new notifications
2) You create a little notification server (like a little node.js webserver or something) which is running on your desktop. Then you have a client application on the server which connects to your desktop whenever there is a notification.