Commit cf65a7c
src: unifying PipeConnectWrap and TCPConnectWrap
This commit attempts to address one of the items in #4641 which is
related to src/pipe_wrap.cc and src/tcp_wrap.cc. Currently both
pipe_wrap.cc and tcp_wrap.cc contain a class that are almost
identical. This commit extracts these parts into a separate class
that both can share.
PR-URL: #7501
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 0645c3d commit cf65a7cCopy full SHA for cf65a7c
File tree
Expand file treeCollapse file tree
5 files changed
+68
-51
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
5 files changed
+68
-51
lines changedOpen diff view settings
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
142 | 142 | |
143 | 143 | |
144 | 144 | |
| 145 | + |
145 | 146 | |
146 | 147 | |
147 | 148 | |
| ||
179 | 180 | |
180 | 181 | |
181 | 182 | |
| 183 | + |
182 | 184 | |
183 | 185 | |
184 | 186 | |
|
Collapse file
src/connect_wrap.cc
Copy file name to clipboard+22Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
Collapse file
src/connect_wrap.h
Copy file name to clipboard+26Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
Collapse file
+8-26Lines changed: 8 additions & 26 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
12 | | - |
| 11 | + |
13 | 12 | |
14 | 13 | |
15 | 14 | |
| ||
31 | 30 | |
32 | 31 | |
33 | 32 | |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | 33 | |
55 | 34 | |
56 | 35 | |
| ||
92 | 71 | |
93 | 72 | |
94 | 73 | |
95 | | - |
96 | | - |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
97 | 78 | |
98 | 79 | |
99 | 80 | |
| ||
163 | 144 | |
164 | 145 | |
165 | 146 | |
166 | | - |
| 147 | + |
167 | 148 | |
168 | 149 | |
169 | 150 | |
| ||
226 | 207 | |
227 | 208 | |
228 | 209 | |
229 | | - |
| 210 | + |
| 211 | + |
230 | 212 | |
231 | 213 | |
232 | 214 | |
|
Collapse file
+10-25Lines changed: 10 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
10 | | - |
| 9 | + |
11 | 10 | |
12 | 11 | |
13 | 12 | |
| ||
32 | 31 | |
33 | 32 | |
34 | 33 | |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | 34 | |
54 | 35 | |
55 | 36 | |
| ||
112 | 93 | |
113 | 94 | |
114 | 95 | |
115 | | - |
116 | | - |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
117 | 100 | |
118 | 101 | |
119 | 102 | |
| ||
253 | 236 | |
254 | 237 | |
255 | 238 | |
256 | | - |
| 239 | + |
257 | 240 | |
258 | 241 | |
259 | 242 | |
| ||
300 | 283 | |
301 | 284 | |
302 | 285 | |
303 | | - |
| 286 | + |
| 287 | + |
304 | 288 | |
305 | 289 | |
306 | 290 | |
| ||
334 | 318 | |
335 | 319 | |
336 | 320 | |
337 | | - |
| 321 | + |
| 322 | + |
338 | 323 | |
339 | 324 | |
340 | 325 | |
|
0 commit comments