schumacker
Programmer
Hi everyone!
I am trying to learn how to use the Delphi components TTcpServer and TTcpClient. I am very dissapointed with the Delphi´s help because it is very poor.
What i am trying to do is very simple. Just writing two applications. One of them is the server and the other is the client. They both run on the same machine.
I want these aplications to do the following steps:
1) Server waits for connections
2) Client connects to server
3) Server accepts the connection
4) Server sends the client a welcome message
5) Client receives the message and shows it in a memo
I think that i already made steps 1 to 4, but i suspect that the client disconnects itself from the server without my permission... and i cant be sure if the connection has actually been made, i have no way to prove it.
Well, if somebody has some sample code and could post it, or just give me some indications, i will be thankfull.
Greetings,
Schumacker (miguelcampoy@hotmail.com)
I am trying to learn how to use the Delphi components TTcpServer and TTcpClient. I am very dissapointed with the Delphi´s help because it is very poor.
What i am trying to do is very simple. Just writing two applications. One of them is the server and the other is the client. They both run on the same machine.
I want these aplications to do the following steps:
1) Server waits for connections
2) Client connects to server
3) Server accepts the connection
4) Server sends the client a welcome message
5) Client receives the message and shows it in a memo
I think that i already made steps 1 to 4, but i suspect that the client disconnects itself from the server without my permission... and i cant be sure if the connection has actually been made, i have no way to prove it.
Well, if somebody has some sample code and could post it, or just give me some indications, i will be thankfull.
Greetings,
Schumacker (miguelcampoy@hotmail.com)