CTCPServer


Implementation of the TCPServer component.

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

class CTCPServer :public virtual ITCPServer, public CComponent
{
public:
    bool isActive() override;
    int getPort() override; // Default 0 
    float getTimeout() override; // Default 5 seconds 
    float getStopTimeout() override; // Default 5 seconds 
    int getMaxConnectionCount() override; // Default 0 
    int getClientCount() override;
    IClient *getClient(const int index) override;

    bool setActive(const bool value) override;
    bool setPort(const int value) override;
    bool setTimeout(const float value) override;
    bool setStopTimeout(const float value) override;
    bool setMaxConnectionCount(const int value) override;

    CTCPServer(); // Create 
    CTCPServer(IForm *parent); // Create and place onto a form 
};
Namespace: nitisa::standard
Include: Standard/Components/TCPServer/TCPServer.h