I have developed a SocketServer for accessing my remote controlled WebCam.
Now I need a queue to administrate access.
Please, can someone post me code for this queue ?
In case a client logs in, connection to SocketServer is established and he can control my WebCam.
- Only the "first" client is allowed to control it (others have to wait until first "hang up")
- After 2 min., connection should be interrupted and next client in list is allowed to control the Cam, and so on...
- elements have to be identified by IP-Adress of client (in case say #4 don't want to wait and disconnects, it has to be removed from list of course)
What I need is simply the queue...! doesn't matter if FIFO or some kind of array...I dunno what's better/easier here.
I've reposted this Q coz there was no feedback at all =:-(
I JUST NEED CODE OF A KIND OF A QUEUE:
Inserting an element, removing an element...where the elements are identified by something like an IP-Adress or another identifier.
If you need more detailed info, let me know.