windows::CSocket


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 ISocket interface for Windows platform.

This class should not be used alone. It is a base class for another platform dependent classes.

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

class CSocket :public virtual ISocket
    {
    protected:
        void *m_pSocket;
    public:
        AnsiString getLocalIp() override;
        AnsiString getRemoteIp() override;
        int getLocalPort() override;
        int getRemotePort() override;
    
        void Release() override;
    
        CSocket(void *socket, const AnsiString &local_ip, const AnsiString &remote_ip, const int local_port, const int remote_port);
        virtual ~CSocket();
    };
Namespace: nitisa::standard::windows
Include: Standard/Platform/Windows/Socket.h