GCC Code Coverage Report
Directory: ../src/ Exec Total Coverage
File: /home/node-core-coverage/node-core-coverage/workdir/node/src/tcp_wrap.h Lines: 0 1 0.0 %
Date: 2016-07-18 Branches: 0 0 0.0 %

Line Exec Source
1
#ifndef SRC_TCP_WRAP_H_
2
#define SRC_TCP_WRAP_H_
3
4
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
5
6
#include "async-wrap.h"
7
#include "env.h"
8
#include "stream_wrap.h"
9
10
namespace node {
11
12
class TCPWrap : public StreamWrap {
13
 public:
14
  static v8::Local<v8::Object> Instantiate(Environment* env, AsyncWrap* parent);
15
  static void Initialize(v8::Local<v8::Object> target,
16
                         v8::Local<v8::Value> unused,
17
                         v8::Local<v8::Context> context);
18
19
  uv_tcp_t* UVHandle();
20
21
  size_t self_size() const override { return sizeof(*this); }
22
23
 private:
24
  typedef uv_tcp_t HandleType;
25
26
  template <typename T,
27
            int (*F)(const typename T::HandleType*, sockaddr*, int*)>
28
  friend void GetSockOrPeerName(const v8::FunctionCallbackInfo<v8::Value>&);
29
30
  TCPWrap(Environment* env, v8::Local<v8::Object> object, AsyncWrap* parent);
31
  ~TCPWrap();
32
33
  static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
34
  static void SetNoDelay(const v8::FunctionCallbackInfo<v8::Value>& args);
35
  static void SetKeepAlive(const v8::FunctionCallbackInfo<v8::Value>& args);
36
  static void Bind(const v8::FunctionCallbackInfo<v8::Value>& args);
37
  static void Bind6(const v8::FunctionCallbackInfo<v8::Value>& args);
38
  static void Listen(const v8::FunctionCallbackInfo<v8::Value>& args);
39
  static void Connect(const v8::FunctionCallbackInfo<v8::Value>& args);
40
  static void Connect6(const v8::FunctionCallbackInfo<v8::Value>& args);
41
  static void Open(const v8::FunctionCallbackInfo<v8::Value>& args);
42
43
#ifdef _WIN32
44
  static void SetSimultaneousAccepts(
45
      const v8::FunctionCallbackInfo<v8::Value>& args);
46
#endif
47
48
  static void OnConnection(uv_stream_t* handle, int status);
49
  static void AfterConnect(uv_connect_t* req, int status);
50
51
  uv_tcp_t handle_;
52
};
53
54
55
}  // namespace node
56
57
#endif  // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
58
59
#endif  // SRC_TCP_WRAP_H_