GCC Code Coverage Report
Directory: ../src/ Exec Total Coverage
File: /home/node-core-coverage/node-core-coverage/workdir/node/out/../src/tcp_wrap.h Lines: 0 1 0.0 %
Date: 2017-01-02 Branches: 0 0 0.0 %

Line Branch 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 "connection_wrap.h"
9
10
namespace node {
11
12
class TCPWrap : public ConnectionWrap<TCPWrap, uv_tcp_t> {
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
  size_t self_size() const override { return sizeof(*this); }
20
21
 private:
22
  typedef uv_tcp_t HandleType;
23
24
  template <typename T,
25
            int (*F)(const typename T::HandleType*, sockaddr*, int*)>
26
  friend void GetSockOrPeerName(const v8::FunctionCallbackInfo<v8::Value>&);
27
28
  TCPWrap(Environment* env, v8::Local<v8::Object> object, AsyncWrap* parent);
29
  ~TCPWrap();
30
31
  static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
32
  static void SetNoDelay(const v8::FunctionCallbackInfo<v8::Value>& args);
33
  static void SetKeepAlive(const v8::FunctionCallbackInfo<v8::Value>& args);
34
  static void Bind(const v8::FunctionCallbackInfo<v8::Value>& args);
35
  static void Bind6(const v8::FunctionCallbackInfo<v8::Value>& args);
36
  static void Listen(const v8::FunctionCallbackInfo<v8::Value>& args);
37
  static void Connect(const v8::FunctionCallbackInfo<v8::Value>& args);
38
  static void Connect6(const v8::FunctionCallbackInfo<v8::Value>& args);
39
  static void Open(const v8::FunctionCallbackInfo<v8::Value>& args);
40
41
#ifdef _WIN32
42
  static void SetSimultaneousAccepts(
43
      const v8::FunctionCallbackInfo<v8::Value>& args);
44
#endif
45
};
46
47
48
}  // namespace node
49
50
#endif  // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
51
52
#endif  // SRC_TCP_WRAP_H_