RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket Methods

The methods of the TCustomWinSocket class are listed here.

 
Name 
Description 
 
Looks up information or forms socket connections asynchronously. 
 
Opens a listening connection. 
 
Opens a connection to a remote socket. 
 
Generates an OnErrorEvent event. 
 
Triggers an OnSocketEvent event. 
 
Generates a windows Internet socket address structure from a description of the desired socket port. 
 
Sets the ASyncStyles property. 
 
Name 
Description 
 
Provides the interface for a method that accepts a connection to a client socket. 
 
Shuts down the socket connection if it is open. 
 
Provides the interface for a method that responds to connection notifications from client sockets. 
 
Processes message records. 
 
Shuts down the socket connection represented by a Windows socket handle. 
 
Opens a listening connection for a server socket. 
 
Lock 
Starts a critical section, blocking all other execution threads until the Unlock method is called. 
 
Generates the portion of a Windows Internet socket address structure that describes the host. 
 
Returns the port number associated with a specific service. 
 
Open 
Opens a connection to a remote socket. 
 
Read 
Generates an OnSocketEvent of type seRead in response to notifications that the socket connection is ready. 
 
Reads up to Count bytes from the socket connection into the Buf parameter. 
 
Returns the number of bytes ready to be sent over the socket connection. 
 
Reads a string from the socket connection. 
 
Writes Count bytes to the socket connection from the Buf parameter. 
 
Writes all the information that can be read from the AStream parameter to the socket connection. 
 
Writes all the information that can be read from the AStream parameter to the socket connection and then terminates the connection. 
 
Writes the string S to the socket connection. 
 
Reenables execution in other threads after a critical section begun by the Lock method. 
 
Generates an OnSocketEvent of type seWrite in response to notifications that the socket connection is ready. 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!