android::CSocket


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

This class is available on Android platform only

Corresponding class for Windows platform is here.

Corresponding class for Linux platform is here.

Implementation of the ISocket interface for Android 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:
        using SOCKET_HANDLE = int;
        SOCKET_HANDLE m_hSocket;
    public:
        AnsiString getLocalIp() override;
        AnsiString getRemoteIp() override;
        int getLocalPort() override;
        int getRemotePort() override;
    
        void Release() override;
    
        CSocket(SOCKET_HANDLE socket, const AnsiString &local_ip, const AnsiString &remote_ip, const int local_port, const int remote_port);
        virtual ~CSocket();
    };
Namespace: nitisa::standard::android
Include: Standard/Platform/Android/Socket.h