TsgcUDPClient implements the UDP Client based on Indy library.
TsgcUDPClient implements the UDP Client based on Indy library.
UDP is a connectionless protocol where there is no assurance that message sent arrive to the destination but opposite to TCP protocol, it's much faster.
1. Drop a TsgcUDPClient component onto the form
2. Set Host and Port (default is 80) to connect to an available UDP Server.
oClient := TsgcUDPClient.Create(nil);
oClient.Host := '127.0.0.1';
oClient.Port := 80;
3. You can connect through an HTTP Proxy Server, you need to define proxy properties:
Host: proxy server hostname.
Port: proxy server port number.
Username: username for authentication, leave blank for anonymous.
Password: password for authentication, leave blank for anonymous.
4. If you want, you can handle the events
5. Call WriteData method to send any message to the UDP server.