| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | 20 | #include <node_buffer.h> | |
| 21 | 21 | #include <node_io_watcher.h> | |
| 22 | - #include <node_net2.h> | ||
| 22 | + #include <node_net.h> | ||
| 23 | 23 | #include <node_events.h> | |
| 24 | 24 | #include <node_cares.h> | |
| 25 | 25 | #include <node_file.h> | |
@@ -1783,7 +1783,7 @@ static Handle<Value> Binding(const Arguments& args) { | |||
| 1783 | 1783 | exports = binding_cache->Get(module)->ToObject(); | |
| 1784 | 1784 | } else { | |
| 1785 | 1785 | exports = Object::New(); | |
| 1786 | - InitNet2(exports); | ||
| 1786 | + InitNet(exports); | ||
| 1787 | 1787 | binding_cache->Set(module, exports); | |
| 1788 | 1788 | } | |
| 1789 | 1789 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - #include <node_net2.h> | ||
| 1 | + #include <node_net.h> | ||
| 2 | 2 | #include <v8.h> | |
| 3 | 3 | ||
| 4 | 4 | #include <node.h> | |
@@ -799,7 +799,7 @@ static Handle<Value> CreateErrnoException(const Arguments& args) { | |||
| 799 | 799 | } | |
| 800 | 800 | ||
| 801 | 801 | ||
| 802 | - void InitNet2(Handle<Object> target) { | ||
| 802 | + void InitNet(Handle<Object> target) { | ||
| 803 | 803 | HandleScope scope; | |
| 804 | 804 | ||
| 805 | 805 | NODE_SET_METHOD(target, "write", Write); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,12 @@ | |||
| 1 | + #ifndef NODE_NET | ||
| 2 | + #define NODE_NET | ||
| 3 | + | ||
| 4 | + #include <v8.h> | ||
| 5 | + | ||
| 6 | + namespace node { | ||
| 7 | + | ||
| 8 | + void InitNet(v8::Handle<v8::Object> target); | ||
| 9 | + | ||
| 10 | + } | ||
| 11 | + | ||
| 12 | + #endif // NODE_NET | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -318,7 +318,7 @@ def build(bld): | |||
| 318 | 318 | src/node.cc | |
| 319 | 319 | src/node_buffer.cc | |
| 320 | 320 | src/node_http_parser.cc | |
| 321 | - src/node_net2.cc | ||
| 321 | + src/node_net.cc | ||
| 322 | 322 | src/node_io_watcher.cc | |
| 323 | 323 | src/node_child_process.cc | |
| 324 | 324 | src/node_constants.cc | |
| Back | FazBrowse Home | New Git URL |
0 commit comments