RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSocket Class

TCustomSocket is the base class for socket components.

Pascal
TCustomSocket = class(TAbstractSocket);
C++
class TCustomSocket : public TAbstractSocket;

Override TCustomSocket to create a socket component that can be assigned event handlers for the events and error conditions that occur. In addition to the properties and methods introduced by TAbstractSocket that enable an application to work with Windows sockets, TCustomSocket introduces several events that can be used by applications. 

Do not create instances of TCustomSocket. Use a descendant of TCustomSocket to add the ability to communicate with other machines using TCP/IP. To create a socket that initiates the connection with another machine, use TClientSocket. To create a socket that responds to requests for connections from other machines, use TServerSocket

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!