Kylin/Nng/Listener.h

20 lines
321 B
C
Raw Normal View History

2024-10-29 21:51:37 +08:00
#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__