node-srt/src/node-srt.h

19 lines
719 B
C
Raw Normal View History

2020-06-13 00:57:57 +02:00
#include <napi.h>
class NodeSRT : public Napi::ObjectWrap<NodeSRT> {
public:
static Napi::Object Init(Napi::Env env, Napi::Object exports);
NodeSRT(const Napi::CallbackInfo& info);
2020-06-13 09:43:20 +02:00
~NodeSRT();
2020-06-13 00:57:57 +02:00
private:
static Napi::FunctionReference constructor;
2020-06-13 09:43:20 +02:00
Napi::Value CreateSocket(const Napi::CallbackInfo& info);
2020-06-13 18:04:12 +02:00
Napi::Value Bind(const Napi::CallbackInfo& info);
Napi::Value Listen(const Napi::CallbackInfo& info);
2020-06-18 23:45:08 +02:00
Napi::Value Connect(const Napi::CallbackInfo& info);
2020-06-13 20:50:34 +02:00
Napi::Value Accept(const Napi::CallbackInfo& info);
Napi::Value Close(const Napi::CallbackInfo& info);
2020-06-18 19:17:32 +02:00
Napi::Value Read(const Napi::CallbackInfo& info);
2020-06-18 23:45:08 +02:00
Napi::Value Write(const Napi::CallbackInfo& info);
2020-06-13 00:57:57 +02:00
};