11cb0ef41Sopenharmony_ci#ifndef SRC_CONNECTION_WRAP_H_
21cb0ef41Sopenharmony_ci#define SRC_CONNECTION_WRAP_H_
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ci#include "stream_wrap.h"
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_cinamespace node {
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ciclass Environment;
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_citemplate <typename WrapType, typename UVType>
131cb0ef41Sopenharmony_ciclass ConnectionWrap : public LibuvStreamWrap {
141cb0ef41Sopenharmony_ci public:
151cb0ef41Sopenharmony_ci  static void OnConnection(uv_stream_t* handle, int status);
161cb0ef41Sopenharmony_ci  static void AfterConnect(uv_connect_t* req, int status);
171cb0ef41Sopenharmony_ci
181cb0ef41Sopenharmony_ci protected:
191cb0ef41Sopenharmony_ci  ConnectionWrap(Environment* env,
201cb0ef41Sopenharmony_ci                 v8::Local<v8::Object> object,
211cb0ef41Sopenharmony_ci                 ProviderType provider);
221cb0ef41Sopenharmony_ci
231cb0ef41Sopenharmony_ci  UVType handle_;
241cb0ef41Sopenharmony_ci};
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_ci}  // namespace node
271cb0ef41Sopenharmony_ci
281cb0ef41Sopenharmony_ci#endif  // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
291cb0ef41Sopenharmony_ci
301cb0ef41Sopenharmony_ci#endif  // SRC_CONNECTION_WRAP_H_
31