#ifndef PIPE_WRAP_H_ #define PIPE_WRAP_H_ #include namespace node { class PipeWrap : StreamWrap { public: uv_pipe_t* UVHandle(); static PipeWrap* Unwrap(v8::Local obj); static void Initialize(v8::Handle target); private: PipeWrap(v8::Handle object); static v8::Handle New(const v8::Arguments& args); static v8::Handle Bind(const v8::Arguments& args); static v8::Handle Listen(const v8::Arguments& args); static v8::Handle Connect(const v8::Arguments& args); static v8::Handle Open(const v8::Arguments& args); static void OnConnection(uv_stream_t* handle, int status); static void AfterConnect(uv_connect_t* req, int status); uv_pipe_t handle_; }; } // namespace node #endif // PIPE_WRAP_H_