Using Client Sockets
Go Up to Using Socket Components
Add a TClientSocket component to your form or data module to turn your application into a TCP/IP 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.