Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use of TTcpClient and TTcpServer

Status
Not open for further replies.

schumacker

Programmer
Mar 29, 2004
3
ES
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 forgot to say that i dont want to use the Indy components.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top