1010 < title >
1111 Beyond HTTP: Node.js with Unix Sockets and Named Pipes
1212 </ title >
13-
13+
1414 < meta name =description content ='Discover how to use Unix domain sockets and Windows named pipes in Node.js as a faster, lightweight alternative to HTTP requests for local inter‑process communication. '>
15-
15+
1616 < base href ='https://ext-code.com/blog/25-12-03/unix-sockets/ '>
1717 < link rel =canonical href ='https://ext-code.com/blog/25-12-03/unix-sockets/unix-sockets.html '>
1818
1919 < link rel =icon type ='image/png ' href ='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAABLFBMVEVHcEwopnMfpm8epm4epm4hpm81pHgfpm8ipnAhpm8ipnAfpm8gpm8jpnAsquAqpXQhpnAjpnEspXQhpnDr3Mgtqt8epm8fpm8kpnEgpm8rpXPr6OkqquAqquEjpnF/xagnqHTr6OlUtY7m5ubm5ub/9//m5uYbpWyXzLZ1s4UPnmRbqrkdpm7m5ubp5+gbpm0bpWwsq3fC29GXzbaMyrEwrOFHtIYnquHb4+Cz1uUkp3LT4ebi5ejwhhL3jhj7mSO72eXkhB12w+T4pDd8xafF3NKfijLWsrDc3diHlIzyr07et4jq07fqmkfhqFfyv3dauuJnveE2rn1AnFltkULIx8dQomPMfxXvjbNuo4xylYXu0KZqr7fOwrFaueL9yoTI1MatqHQwqtqDrqPS97zrAAAALHRSTlMAHtX5958F0l+Pfe2lXa4QgGAPjf6b8fBbzw9Y0L1h6t3NR9HhDPzLh/QusFA6UqkAAAGESURBVCjPdZNnW8IwEIDTtKVQKHsj7u21RUVREBFQ2SjuPf//fzBt0gFPfT+0z9M3vVwudwhZcLEQzvB8Bof8HJqFi2IeGLwkTy/w+TFMgRWfYyMBAfSShW54IZG3bFwEqJ6XLRYWzQBinEUOAOi7F5rF0rJErA4JGl8RDL2nqYyVte2Nau+lKmTNnI2s3Hq1UNjc6jz1ABv5yzCj1XU12R93nnWQyc+SrdneZMFVo35ZBZA4pPCWrh1Tatpr+/Tx1qhPFonAtNo6oLSS/Ubzjh4OSZY+ua5QJkbokvk5h4IuPZcqhsPF3/Zp88EsHQQRb+sPosOp8M64UR8c0r8FR9O9Kz/fjfqoa2s7uFY7I0zeSOjhEdNBJzV67trX52igWTrnHIxV7X2YVG0tuspC9X2XPJgmZXEV1cR8MU2K6nEltpadC3XagUC1eaHIT9qBNNO+i/INqZqg2M3kBWsmFBG9rJh3GpmflUIi7hqD2OwY+H3/DxGOekzZfAinAdI4FHPkH67FfQ17kRvyAAAAAElFTkSuQmCC '>
2020 < meta name =viewport content ='width=device-width, initial-scale=1 '>
21-
21+
2222 < script type ='application/ld+json '>
2323 {
2424 "@context" : "https://schema.org" ,
3232 "publisher" : { "@type" :"Organization" , "name" :"ext-code.com" , "logo" :{ "@type" :"ImageObject" , "url" :"https://ext-code.com/favicon.ico" } } ,
3333 }
3434 </ script >
35-
35+
3636 < script src ='https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js '> </ script >
37-
38-
39- < script src ='https://libs.ext-code.com/js/dom/component/component.js '> </ script >
37+
38+
39+ < script src ='https://libs.ext-code.com/js/dom/component/v3.0/ component.js '> </ script >
4040
4141 < script init >
4242 console . clear ( ) ;
5656 var debug ;
5757
5858 var menu ;
59-
59+
6060 var hdr ;
6161 var log ;
6262 var ex = { } ;
6666
6767
6868 async function init ( ) {
69-
69+
7070 menu = menumod ( ) ;
7171
7272 mod . base . add ( { ext, $, datatype, keydown, menu, menumod, ace} ) ;
7373
74-
74+
7575 hdr = mod [ 'blog-hdr' ] ;
7676 log = mod [ 'log-mod' ] ;
7777
9797 ex [ 'client-linux-c' ] . initmod ( { ext, $, menu, ace, menu, menumod} ) ;
9898 ex [ 'client-linux-nodejs' ] . initmod ( { ext, $, menu, ace, menu, menumod} ) ;
9999 ex [ 'client-win-c' ] . initmod ( { ext, $, menu, ace, menu, menumod} ) ;
100-
100+
101101
102102 await Promise . all ( [
103103 hdr . init ( ) ,
139139 [ $ , datatype , menumod , keydown , debug ] = await promise ;
140140
141141 mod . stack . complete ;
142-
142+
143143} ) ( ) ;
144-
145- </ script init>
146-
147144
145+ </ script init>
146+
147+
148148 < link rel =stylesheet href ='https://fonts.googleapis.com/css2?family=Pacifico&display=swap ' crossorigin =anonymous >
149149 < link rel =stylesheet href ='/blog/css/blog.css '>
150-
150+
151151 < style >
152-
153-
152+
153+
154154
155155 html
156156 {height : 100% ;font-family : arial}
164164 [component ]
165165 {display : none}
166166
167- .description
167+ .description
168168 {max-width : 1000px ;text-align : justify;border-left : 4px solid # 4a90e2 ;padding : 1rem 2rem ;
169169 background-color : # f9f9f9 ;font-family : system-ui, sans-serif;font-size : 1rem ;line-height : 1.6 ;color : # 333 }
170170 .description > p
171171 {margin : 0 }
172172 .description > p + p
173173 {margin : 10px 0 }
174-
175-
174+
175+
176176 .blog-hdr
177177 {color : blue}
178178
179- .blog-text
179+ .blog-text
180180 {margin : 1.5rem auto;padding : 1.25rem 1.75rem ;background-color : # fcfcfc ;/*#f9f9f9*/ font-family : system-ui, sans-serif;font-size : 1rem ;line-height : 2 ;
181- color : # 333 ;text-align : justify;border-radius : 4px }
182- .blog-text h2 , .blog-text h3
181+ color : # 333 ;text-align : justify;border-radius : 4px }
182+ .blog-text h2 , .blog-text h3
183183 {margin-top : 1.5rem ;margin-bottom : 0.75rem ;font-weight : 600 ;color : # 222 ;}
184- .blog-text p
184+ .blog-text p
185185 {margin : 0 0 1rem 0 ;}
186-
187-
188-
189-
190-
191-
192-
193-
186+
187+
188+
189+
190+
191+
192+
193+
194194 code
195195 {font-family : monospace;background : whitesmoke}
196196 code .inline
197197 {display : inline;padding : 5px 10px }
198-
199-
200-
198+
199+
200+
201201 a
202202 {color : # 4a90e2 ;text-decoration : none;font-weight : 500 }
203- a : hover
203+ a : hover
204204 {text-decoration : underline}
205205 .link-domain
206206 {font-size : 0.85rem ;color : # 777 ;margin-left : 0.25rem }
207- .link-domain ::before
207+ .link-domain ::before
208208 {content : '[' }
209209 .link-domain ::after
210210 {content : ']' }
211211 .link-txt
212212 {}
213-
213+
214214 input
215215 {font-size : 16px ;padding : 5px 7px ;box-sizing : border-box;}
216216 input [type = button ]
217217 {cursor : pointer}
218-
219-
218+
219+
220220 snippet-editor , web-editor
221221 {margin : 30px 0 ;display : block}
222-
223-
222+
223+
224224 .icon
225225 {border : 1px solid gray;border-radius : 3px ;box-sizing : border-box;width : 30px ;height : 30px ;cursor : pointer}
226-
226+
227227 blog-hdr h1
228228 {font-family : pacifico}
229-
229+
230230 </ style >
231231
232232 </ head >
233233
234234
235235 < body >
236-
237-
238- < blog-hdr component =grp1 >
236+
237+
238+ < blog-hdr component =grp1 >
239239 < h1 class =title style ='position:absolute;left:0;right:0;margin:auto;top:-10px '>
240240 Beyond HTTP: Node.js with Unix Sockets and Named Pipes
241241 </ h1 >
242242 < time slot =date datetime =2025-12-03 >
243243 03 Dec 2025
244244 </ time >
245245 </ blog-hdr >
246-
246+
247247 < div class =description >
248248 < p >
249249 Discover how to use Unix domain sockets and Windows named pipes in Node.js as a faster, lightweight alternative to HTTP requests for local inter‑process communication.
@@ -265,13 +265,13 @@ <h1 class=title style='position:absolute;left:0;right:0;margin:auto;top:-10px'>
265265 </ code >
266266 </ p >
267267 </ div >
268-
269-
268+
269+
270270 < h3 class =blog-hdr >
271271 ipc socket servers
272272 </ h3 >
273273
274-
274+
275275 < section class =blog-text >
276276 < h3 >
277277 ipc server linux nodejs
283283 < snippet-editor id =linux-server-js src ='ex/ipc-server-linux.node.js ' fullsize component > </ snippet-editor >
284284
285285 </ section >
286-
287-
286+
287+
288288 < section class =blog-text >
289289 < h3 >
290290 ipc server linux c
296296 < snippet-editor id =linux-server-c src ='ex/ipc-server-linux.c ' mode =c fullsize component > </ snippet-editor >
297297
298298 </ section >
299-
299+
300300
301301 < section class =blog-text >
302302 < h3 >
309309 < snippet-editor id =win-server-js src ='ex/ipc-server-win.node.js ' fullsize component > </ anippet-editor >
310310
311311 </ section >
312-
312+
313313
314314 < section class =blog-text >
315315 < h3 >
340340 < snippet-editor id =client-win-js src ='ex/ipc-client-win.node.js ' fullsize component > </ snippet-editor >
341341
342342 </ section >
343-
344-
343+
344+
345345 < section class =blog-text >
346346 < h3 >
347347 ipc client linux c
353353 < snippet-editor id =client-linux-c src ='ex/ipc-client-linux.c ' mode =c fullsize component > </ snippet-editor >
354354
355355 </ section >
356-
357-
356+
357+
358358 < section class =blog-text >
359359 < h3 >
360360 ipc client linux nodejs
366366 < snippet-editor id =client-linux-nodejs src ='ex/ipc-client-linux.node.js ' fullsize component > </ snippet-editor >
367367
368368 </ section >
369-
370-
369+
370+
371371 < section class =blog-text >
372372 < h3 >
373373 ipc client windows c
@@ -380,19 +380,19 @@ <h3>
380380
381381 </ section >
382382
383-
384-
385-
386-
387-
388383
389384
390385
391386
392387
393388
394389
395-
390+
391+
392+
393+
394+
395+
396396 < log-mod component > </ log-mod >
397397
398398 </ body >
401401
402402
403403 function initdom ( ) {
404-
404+
405405 hdr . initdom ( ) ;
406406 log . initdom ( ) ;
407407
414414 ex [ 'client-linux-c' ] . initdom ( ) ;
415415 ex [ 'client-linux-nodejs' ] . initdom ( ) ;
416416 ex [ 'client-win-c' ] . initdom ( ) ;
417-
417+
418418
419419 } //initdom
420420
0 commit comments