20 lines
321 B
C
20 lines
321 B
C
|
#ifndef __LISTENER_H__
|
||
|
#define __LISTENER_H__
|
||
|
|
||
|
#include "Protocol.h"
|
||
|
#include <nng/nng.h>
|
||
|
#include <string_view>
|
||
|
namespace Nng {
|
||
|
|
||
|
class Socket;
|
||
|
|
||
|
class Listener {
|
||
|
public:
|
||
|
Listener(const Socket &socket, const std::string_view &url);
|
||
|
|
||
|
private:
|
||
|
nng_listener m_listener;
|
||
|
};
|
||
|
} // namespace Nng
|
||
|
|
||
|
#endif // __LISTENER_H__
|