Look through the demos and find a demo that uses the WSocketServer. This component handles the connection of clients, disconnection of clients and so on and has a list of all connected clients. And you can build your own protocol your self. The HttpSrv component is a webserver, this is built on top of the WSocketServer.
Derive your own class from the connection-class that the WSocketServer uses for the clients that connects, and put in some ids etc to identify each client with an ID to be sure to sendt to right client when you want to send commands. Since the component is async, you don't need any threads to avoid blocking. Regards Bjørnar > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of George > Sent: 31. mai 2005 00:42 > To: twsocket@elists.org > Subject: [twsocket] Internet cafe software > > Hello, > > I want to make an internet cafe software that will use ICS to > communicate. Here's the specs: > > 1. There is one server and X number of clients. We dont know > how much clients, this number is configured by user. So I > need to dynamically create sockets. > > 2. The server will listen and the clients will connect to server. > > 3. The clients will be always connected to server, because > server has to know if clients are connected/disconnected. > > 4. The server sends commands to client in the form of a > simple string or maybe a stream. > > 5. Most of the time the sockets will be idle. > > Can you give me some suggestions please? What example to use > from the demos as a base? > > Thanks > George > -- > To unsubscribe or change your settings for TWSocket mailing > list please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be