Solved

Client Server Winsock

Posted on 1998-01-26
3
655 Views
Last Modified: 2008-02-01
DELPHIer,

For the Socket Component, what is TServerClientThread and TCustomSocket ? And what is the differences between TClientWinSocket and TClientSocket or TServerWinSocket and TServerSocket respectively ?

Andrew
0
Comment
Question by:andrewyu
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 10 total points
Comment Utility
Hi

The TServerClientThread is managed by TServerWinSocket components.  One thread is created for each client so that the main program's speed isn't affected.  You don't need to worry about TServerClientThreads as the TServerWinSocket manages these for you.

TCustomSocket is the base class for the socket components, i.e. TClientSocket and TServerSocket.  Similarly, TCustomWinSocket is the base class for TClientWinSocket and TServerWinSocket.  The difference between T???Socket and T???WinSocket is that the T???WinSocket components use a different set of Windows API calls (WSA...) specially developed for using sockets in Windows.  In other words, the main difference is that TClientSocket and TServerSocket use different API calls from TClientWinSocket and TServerWinSocket.

Regards,
JB
0
 

Author Comment

by:andrewyu
Comment Utility
For TClientSocket and TClientWinSocket, which one have a higher efficiency ??????

thanks,
Andrew
0
 
LVL 5

Expert Comment

by:JimBob091197
Comment Utility
Both do.  In Delphi, the components are TClientSocket and TServerSocket (which use TClientWinSocket and TServerWinSocket internally).  If you want to use components (which is recommended) then you must use TClientSocket & TServerSocket, because the T???WinSocket components are NOT Delphi components.  When you use TClientSocket, TClientWinSocket is used internally.  Similarly, when you use the TServerSocket component, TServerWinSocket is used internally.

JB
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IExtractImage Delphi 14 162
Delphi XE10 Round Image 2 48
Delphi selector screen 2 56
Delphi Form ownership 4 50
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now