IdTCPServer and IBO
Posted on 2007-11-28
I am using: delphi7/IBO/IdTCPServer (indy 10.2.3)
I need do some think like this:
1- Receive a command with the username and a message from client and insert into a table in firebird
2- Continuously server read this table with TTimer and send new messages to specific client
1- Client User1 send a message to user2 -> "user2:Hi, thanks"
2- The server insert in a table the username (user2) and the message (Hi, thanks)
3- Server read the table with TTimer and send the messages to specific client (user2 in this case)
4- Client user2 receives the message: "Hi, thanks"
I dont know do this with thread-safe
I have to use this way, because i have another program that will save in this table too
Please guys help me