harveyDent
Programmer
Hi everyone, this is my first post, and I am kinda excited about this
I am trying to write a very simple server-client application using Indy (it's the one that comes default with Borland Delphi 7). It's based on a sample project called Screen Thief (can be found in )
It simply works like this, server and client talk to each other continuously (using ReadLn and WriteLn functions)(They say '0', meaning I want nothing from you right now). If server wants something from client, says something other than '0'. This is the basic working mechanism. Everything seems fine, there are no synchronisation problems, or timeout problems.
Here is the scenario: A client connects, say Hello to server, server says Hi, they stand a while, the client goes offline, and server sees client is gone, updates the client list, life goes on. But, after client connects to server, they greet each other, and server WANTS something (and its done by client without any problem), then client goes offline -> the servers TCPServerDisconnect function starts to work but hangs in the line Clients.LockList.Remove(Client);
I am sure that I am missing something stupid, but nothing exceptional happens. Just the same talking between server-client. What may be causing this problem?
Thanks
I am trying to write a very simple server-client application using Indy (it's the one that comes default with Borland Delphi 7). It's based on a sample project called Screen Thief (can be found in )
It simply works like this, server and client talk to each other continuously (using ReadLn and WriteLn functions)(They say '0', meaning I want nothing from you right now). If server wants something from client, says something other than '0'. This is the basic working mechanism. Everything seems fine, there are no synchronisation problems, or timeout problems.
Here is the scenario: A client connects, say Hello to server, server says Hi, they stand a while, the client goes offline, and server sees client is gone, updates the client list, life goes on. But, after client connects to server, they greet each other, and server WANTS something (and its done by client without any problem), then client goes offline -> the servers TCPServerDisconnect function starts to work but hangs in the line Clients.LockList.Remove(Client);
I am sure that I am missing something stupid, but nothing exceptional happens. Just the same talking between server-client. What may be causing this problem?
Thanks