mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-21 10:01:42 +03:00
69496abbab
into the application.
29 lines
466 B
C++
29 lines
466 B
C++
#ifndef ISOCKETFACTORY_H
|
|
#define ISOCKETFACTORY_H
|
|
|
|
#include "IInterface.h"
|
|
|
|
class IDataSocket;
|
|
class IListenSocket;
|
|
|
|
//! Socket factory
|
|
/*!
|
|
This interface defines the methods common to all factories used to
|
|
create sockets.
|
|
*/
|
|
class ISocketFactory : public IInterface {
|
|
public:
|
|
//! @name accessors
|
|
//@{
|
|
|
|
//! Create data socket
|
|
virtual IDataSocket* create() const = 0;
|
|
|
|
//! Create listen socket
|
|
virtual IListenSocket* createListen() const = 0;
|
|
|
|
//@}
|
|
};
|
|
|
|
#endif
|