RAD Studio
ContentsIndex
PreviousUpNext
Client Events

When a client socket opens a connection, the following events occur:

  • The socket is set up and initialized for event notification.
  • An OnCreateHandle event occurs after the server and server socket is created. At this point, the socket object available through the Handle property can provide information about the server or client socket that will form the other end of the connection. This is the first chance to obtain the actual port used for the connection, which may differ from the port of the listening sockets that accepted the connection.
  • The connection request is accepted by the server and completed by the client socket.
  • When the connection is established, the OnConnect notification event occurs.

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