Node.js
v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
connection_wrap.h
Go to the documentation of this file.
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 "
env.h
"
7
#include "
stream_wrap.h
"
8
#include "v8.h"
9
10
namespace
node
{
11
12
template
<
typename
WrapType,
typename
UVType>
13
class
ConnectionWrap :
public
StreamWrap {
14
public
:
15
UVType* UVHandle() {
16
return
&handle_;
17
}
18
19
static
void
OnConnection(uv_stream_t* handle,
int
status
);
20
static
void
AfterConnect(uv_connect_t*
req
,
int
status
);
21
22
protected
:
23
ConnectionWrap(Environment* env,
24
v8::Local<v8::Object>
object
,
25
ProviderType provider);
26
~ConnectionWrap() {
27
}
28
29
UVType handle_;
30
};
31
32
33
}
// namespace node
34
35
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
36
37
#endif // SRC_CONNECTION_WRAP_H_
env.h
status
int status
Definition:
cares_wrap.cc:479
node
Definition:
async-wrap.cc:62
req
uv_fs_t req
Definition:
node_file.cc:374
stream_wrap.h
src
connection_wrap.h
Generated on Fri Sep 15 2017 12:56:43 for Node.js by
1.8.13