22 #ifndef SRC_TCP_WRAP_H_ 23 #define SRC_TCP_WRAP_H_ 25 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 33 class TCPWrap :
public ConnectionWrap<TCPWrap, uv_tcp_t> {
35 static v8::Local<v8::Object> Instantiate(Environment* env, AsyncWrap* parent);
36 static void Initialize(v8::Local<v8::Object> target,
37 v8::Local<v8::Value> unused,
38 v8::Local<v8::Context> context);
40 size_t self_size()
const override {
return sizeof(*this); }
43 typedef uv_tcp_t HandleType;
46 int (*F)(
const typename T::HandleType*, sockaddr*,
int*)>
47 friend void GetSockOrPeerName(
const v8::FunctionCallbackInfo<v8::Value>&);
49 TCPWrap(Environment* env, v8::Local<v8::Object>
object);
52 static void New(
const v8::FunctionCallbackInfo<v8::Value>& args);
53 static void SetNoDelay(
const v8::FunctionCallbackInfo<v8::Value>& args);
54 static void SetKeepAlive(
const v8::FunctionCallbackInfo<v8::Value>& args);
55 static void Bind(
const v8::FunctionCallbackInfo<v8::Value>& args);
56 static void Bind6(
const v8::FunctionCallbackInfo<v8::Value>& args);
57 static void Listen(
const v8::FunctionCallbackInfo<v8::Value>& args);
58 static void Connect(
const v8::FunctionCallbackInfo<v8::Value>& args);
59 static void Connect6(
const v8::FunctionCallbackInfo<v8::Value>& args);
60 static void Open(
const v8::FunctionCallbackInfo<v8::Value>& args);
63 static void SetSimultaneousAccepts(
64 const v8::FunctionCallbackInfo<v8::Value>& args);
71 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 73 #endif // SRC_TCP_WRAP_H_
void Initialize(Local< Object > target, Local< Value > unused, Local< Context > context, void *priv)
void Open(const FunctionCallbackInfo< Value > &args)
MaybeLocal< Object > New(Isolate *isolate, Local< String > string, enum encoding enc)