Show: Delphi C++
From RAD Studio XE2
Go Up to Working with sockets Index
Go Up to C++Builder Developer's Guide
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.