使用 Nodejs net module 撰寫 TCP server
簡介
本文將會講述以下重點
如何使用 nodejs 撰寫 tcp 的伺服器
透過 wireshark 等工具驗證傳輸的 Data 內容
1. 如何使用 nodejs 撰寫 tcp 的伺服器
為了能夠有效展示透過 Nodejs 撰寫 TCP server 的傳輸資料流程
以下將透過撰寫兩個程式來做邏輯驗證
simple-tcp-app.ts: 接收資料用的 TCP server
simple-sender.ts: 傳輸資料用的 TCP client
1.1 nodejs 的 net...
ganhua.wang2 min read