Using Client Sockets
Go Up to Working with sockets Index
Add a Sockets.TTcpClient or Sockets.TUdpSocket component to your form or data module to turn your application into a TCP/IP or UDP client. Client sockets allow you to specify the server socket you want to connect to, and the service you want that server to provide. Once you have described the desired connection, you can use the client socket component to complete the connection to the server.
Each client socket component uses a single client socket object to represent the client endpoint in a connection.
Use client sockets to
- Specify the desired server.
- Connect to the server.
- Get information about the connection.
- Read from or write to the server.
- Close the connection.