CTCPClient


Implementation of the TCPClient component.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class CTCPClient :public virtual ITCPClient, public CComponent
{
public:
    bool isActive() override;
    float getConnectTimeout() override; // Default 5 seconds 
    float getTimeout() override; // Default 5 seconds 
    String getServer() override;
    int getPort() override;
    IClientSocket *getSocket() override;

    bool setActive(const bool value) override;
    bool setConnectTimeout(const float value) override;
    bool setTimeout(const float value) override;
    bool setServer(const String &value) override;
    bool setPort(const int value) override;

    CTCPClient();
    CTCPClient(IForm *parent);
    ~CTCPClient() override;
};
Namespace: nitisa::standard
Include: Standard/Components/TCPClient/TCPClient.h