Solved

WHAT'S THE BEST: IDTCPCLIENT, IDTCPSERVER === OR === TCPCLIENT, TCPSERVER

Posted on 2006-07-11
3
1,149 Views
Last Modified: 2010-04-05
I WOULD LIKE TO KNOW:

WHAT'S THE DIFERENCE? IDTCPCLIENT, IDTCPSERVER ====== TCPCLIENT, TCPSERVER
0
Comment
Question by:rafaelrgl
  • 2
3 Comments
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 17086502
what component package are TCPClient, TCPserver from?

Indy is blocking, ie. you say
s := IdTCPClient1.IOHandler.ReadString;
showmessage(s);

the showmessage line will not occur until indy has received the string
if, for example you were using a non-blocking componet set such as Fracois Piette's ICS
you would use the OnDataAvailable event, and use a buffer, and showthemessage once you had received an end of string delimiter (e.g. #1 or #13#10)
(you can change it to "linemode" to make this as easy as indy)

The most popular TCP components are (in no particular order)
Indy's TidTCPClient, TidTCPServer
ICS TWSocket, TWSocketServer
Delphi's native TSocket and TServerSocket

0
 
LVL 1

Author Comment

by:rafaelrgl
ID: 17096228
TCPClient and TCPServer is from Borland Internet Components ( dclnet70.bpl )
0
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 400 total points
ID: 17096488
oh right, delphi 7. yeah, they're almost the same as the TSocket and TSocketServer from previous versions of delphi.
They can be blocking or non-blocking whereas Indy is blocking
Indy is a 3rd party component set.
Probably more demos for Indy than borland's TTCPClient and TTCPServer, but Indy has some flakey versions.
The Indy9 that ships with delphi is not really supported anymore.
The Indy 10.0.5.2 version had some big changes, and some horrid bugs.
The latest snapshot Indy 10 is reasonably stable for me, but does not have many demos for it.
In saying that, I have made several demos for various versions of Indy, including the latest, and it's pretty easy to learn and work with
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
find a node in VST 2 68
select query - oracle 16 100
How to debug For loops? 3 49
Is there any TOOL for creating database *.CDS[ClientDataSet] ,*.FDS,*.FDB,*.ADB? 6 35
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question