

Procedure TForm1.ClientSocket1Connect(Sender: TObject Procedure TForm1.Button2Click(Sender: TObject) Procedure ClientSocket1Connect(Sender: TObject Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, If Host is set, it takes precedence over the Address property when looking up the address of the server. Using a host name allows the client socket to find the abstract site represented by the host name, even when it has moved to a new IP address. Some servers change the system or IP address that is associated with a particular host name. When the socket opens a connection, it looks up the IP address for the server socket using the value of Host. Host is a string containing the domain name and service of a particular system, such asįor client sockets, set Host to the system with which the client socket should form a connection. Specifies an alias for the IP address of the server system. Procedure TForm1.FormDestroy(Sender: TObject) Procedure TForm1.ServerSocket1ClientRead(Sender: TObject Procedure TForm1.Button1Click(Sender: TObject)
