-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathsocket_watcher.hpp
More file actions
29 lines (21 loc) · 810 Bytes
/
Copy pathsocket_watcher.hpp
File metadata and controls
29 lines (21 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef NODE_MDNS_SOCKET_poll_INCLUDED
#define NODE_MDNS_SOCKET_poll_INCLUDED
namespace node_mdns {
class SocketWatcher : public node::ObjectWrap {
public:
SocketWatcher();
static void Initialize(v8::Handle<v8::Object> target);
private:
uv_poll_t* poll_;
int fd_;
int events_;
static v8::Handle<v8::Value> New(const v8::Arguments & args);
static v8::Handle<v8::Value> Set(const v8::Arguments & args);
static v8::Handle<v8::Value> Start(const v8::Arguments& args);
static v8::Handle<v8::Value> Stop(const v8::Arguments& args);
void Start();
void Stop();
static void Callback(uv_poll_t *w, int status, int events);
};
} // end of namespace node_mdns
#endif // NODE_MDNS_WINSOCK_poll_INCLUDED