System.Win.ScktComp.TCustomWinSocket.ASyncStyles

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ASyncStyles: TAsyncStyles read FAsyncStyles write SetAsyncStyles;

C++

__property TAsyncStyles ASyncStyles = {read=FAsyncStyles, write=SetAsyncStyles, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TCustomWinSocket

Description

Determines which asynchronous events the socket can receive.

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.

See Also