1 |
|
|
#ifndef SRC_CONNECTION_WRAP_H_ |
2 |
|
|
#define SRC_CONNECTION_WRAP_H_ |
3 |
|
|
|
4 |
|
|
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS |
5 |
|
|
|
6 |
|
|
#include "stream_wrap.h" |
7 |
|
|
|
8 |
|
|
namespace node { |
9 |
|
|
|
10 |
|
|
class Environment; |
11 |
|
|
|
12 |
|
|
template <typename WrapType, typename UVType> |
13 |
|
18829 |
class ConnectionWrap : public LibuvStreamWrap { |
14 |
|
|
public: |
15 |
|
|
static void OnConnection(uv_stream_t* handle, int status); |
16 |
|
|
static void AfterConnect(uv_connect_t* req, int status); |
17 |
|
|
|
18 |
|
|
protected: |
19 |
|
|
ConnectionWrap(Environment* env, |
20 |
|
|
v8::Local<v8::Object> object, |
21 |
|
|
ProviderType provider); |
22 |
|
|
|
23 |
|
|
UVType handle_; |
24 |
|
|
}; |
25 |
|
|
|
26 |
|
|
} // namespace node |
27 |
|
|
|
28 |
|
|
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS |
29 |
|
|
|
30 |
|
|
#endif // SRC_CONNECTION_WRAP_H_ |