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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ClientSocket? 1

Status
Not open for further replies.

edgarasm

Programmer
Oct 29, 2002
26
0
0
BR
I'd like to know if there is a limit of connections that I can have in the same time.

It's a bad ideia to open a connection with ClientSocket and close the connection imediately when I finished using it?
 
When working with sockets in Windows, multiple approaches are possible. Reading and writing data from a socket can happen asynchronously, so it doesnt block the execution of other code in your network applictaion.
this is called a nonblocking connection.
You can use blocking, nonblocking and multithread connection.

>It's a bad ideia to open a connection with ClientSocket >and close the connection imediately when I finished using >it?

Well it is up to you, but I would try multithread connection

mha
 
could you give futher details about multithread connection in delphi.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top