windows::CServerSocket


All platform-dependent classes have been moved to Platform Package in release 10.0.0.

This class is available on Windows platform only

Corresponding class for Linux platform is here.

Corresponding class for Android platform is here.

Implementation of the IServerSocket interface for Windows platform.

This class should not be used alone. The instance of this class is created by the Application->getNetwork()->TCPListen() method which is used to create new TCP server listening connection at specified port. See INetwork to find out about TCPListen() arguments and result type.

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

class CServerSocket :public virtual IServerSocket, public CSocket
    {
    public:
        IServerSocketListener *getListener() override;
    
        void setListener(IServerSocketListener *value) override;
    
        void Terminate() override;
        bool Listen() override;
    
        CServerSocket(void *socket, const AnsiString &local_ip, const AnsiString &remote_ip, const int local_port, const int remote_port);
    };
Namespace: nitisa::standard::windows
Include: Standard/Platform/Windows/ServerSocket.h