RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket.ASyncStyles Property

Determines which asynchronous events the socket can receive.

Pascal
property ASyncStyles: TAsyncStyles;
C++
__property TAsyncStyles ASyncStyles;

Use ASyncStyles to determine what sorts of notifications the socket needs to respond to. Set ASyncStyles to change the notifications that the socket receives from the socket connection. ASyncStyles is a set drawn from the following values:

Value 
Meaning 
asRead  
The socket receives notification that the connection is ready for reading.  
asWrite  
The socket receives notification that the connection is ready for writing.  
asOOB  
The socket receives notification when out-of-band data arrives.  
asAccept  
The socket receives notification when another socket requests a connection.  
asConnect  
The socket receives notification when a communication link to another socket is opened.  
asClose  
The socket receives notification when a communication link to another socket is terminated.  

Any notification specified by ASyncStyles arrives as a window message to the Handle property.

Note: If the socket is a non-blocking socket, then ASyncStyles should include asRead and asWrite so that the socket will be informed of asynchronous reading and writing events.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!