System.Win.ScktComp.TSocketEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TSocketEvent = (seLookup, seConnecting, seConnect, seDisconnect, seListen,
seAccept, seWrite, seRead);

C++

enum DECLSPEC_DENUM TSocketEvent : unsigned char { seLookup, seConnecting, seConnect, seDisconnect, seListen, seAccept, seWrite, seRead };

Properties

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

Description

TSocketEvent identifies the operation that a socket is performing.

TSocketEvent is used to identify what a socket is doing when various methods or event handlers are called. It has one of the following values:



Value Meaning

seLookup

(client sockets only) The Windows socket object is about to locate the server socket. Changing the properties of the client socket has no effect at this point, but changes to the Windows socket object specified by the Socket parameter will affect the attempted connection.

seConnecting

(client sockets only) The server socket has been located but the connection isn't completed. This is the first opportunity to obtain the actual server port and IP address used for the connection, which may differ from those of the listening socket contacted initially.

seConnect

The socket connection has just been established. This is the point when a socket starts reading or writing over the connection.

seListen

(server sockets only) The Windows socket object has been initialized and is about to open a listening connection. Changing the properties of the server socket has no effect at this point, but changes to the Windows socket object specified by the Socket parameter will the listening connection.

seAccept

(server sockets only) A client connection request has just been accepted. This is the first opportunity to obtain the port and IP address of the individual client connection.

seWrite

The socket is ready for information to be written.

seRead

The socket is receiving information from a socket on the other end of the connection.



See Also