#ifndef NETLINKOBJECT_H #define NETLINKOBJECT_H #include #include #include "netlink/socket.h" class NetLinkWrapper : public node::ObjectWrap { public: static void Init(v8::Local exports); private: NL::Socket* socket; explicit NetLinkWrapper(); ~NetLinkWrapper(); static void New(const v8::FunctionCallbackInfo& args); static void Connect(const v8::FunctionCallbackInfo& args); static void Blocking(const v8::FunctionCallbackInfo& args); static void Read(const v8::FunctionCallbackInfo& args); static void Write(const v8::FunctionCallbackInfo& args); static void Disconnect(const v8::FunctionCallbackInfo& args); static v8::Persistent constructor; }; #endif