![]() The Delphi ClientSocket control is used for executing TCP/IP handling. StatusBar1.SimpleText := ’Connected to ’ + ed_ip.Text ![]() Procedure Twebio_ascii_client.ClientSocket1Connect(Sender:TObject Socket: TCustomWinSocket) The status line indicates that the connection has been established, the control elements are enabled for use and the Disconnect button is active again. Procedure Twebio_ascii_client.bt_connectClick(Sender:TObject) ĬlientSocket1.Port := strtoint(ed_port.Text) Īs soon as the Web-IO accepts the connection, the ClientSocket control element carries out the corresponding procedure. ![]() The connection is opened by entering the IP address of the Web-IO in the text field ed_ip and clicking on the bt_connect button. StatusBar1.SimpleText := ’No Connection’ Įnd Connection control Establishing the connection ![]() Procedure Twebio_ascii_client.FormCreate(Sender:TObject) The status line indicates that there is not yet a connection. Starting the program Setting up the operating elementsĪt first the group with the operating elements for the Web-IO is blocked from use. In this example the first part of the name describes the type of object and the second part the function. When naming the individual objects it is helpful to use logical names.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |