IServerSocket



Describes server socket connection.

You can find more information in comments below.

class IServerSocket :public virtual ISocket
{
public:
    virtual IServerSocketListener *getListener() = 0; // Return associated listener

    virtual void setListener(IServerSocketListener *value) = 0; // Set listener

    virtual void Terminate() = 0; // Stop listening
    virtual bool Listen() = 0; // Start listening loop. Would block untill Terminate() call or error happened. Should be run in separate thread. Return false in case of error
};
Namespace: nitisa
Include: Nitisa/Interfaces/INetwork.h