---
title: "Discussion on \"使用 Nodejs net module 撰寫 TCP server\" | Hashnode"
description: "Discussion on \"使用 Nodejs net module 撰寫 TCP server\". 簡介\n本文將會講述以下重點\n\n如何使用 nodejs 撰寫 tcp 的伺服器\n\n透過 wireshark 等工具驗證傳輸的 Data 內容\n\n\n1. 如何使用 nodejs 撰寫 tcp 的伺服器\n為了能夠有效展示透過 Nodejs 撰寫 TCP server 的傳輸資料流程\n以下將透過撰寫兩個程式來做邏輯驗證\n\nsimple-tcp-app.ts: 接收資料用的 TCP server\n\nsimple-sender.ts: 傳輸資料用的 TCP client\n\n\n1.1 nodejs 的 net..."
url: "https://hashnode.com/posts/nodejs-net-module-tcp-server/64a1cab67b060fbdb33d5db0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [使用 Nodejs net module 撰寫 TCP server](https://ganhua.wang/nodejs-net-module-tcp-server?utm_source=hashnode&utm_medium=feed)

簡介 本文將會講述以下重點 如何使用 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...

Jul 2, 2023 · 2 min read · ganhua.wang  
Updated May 7, 2024  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#networking](https://hashnode.com/tag/networking)

## Written by

[Yuanyu Liang](https://hashnode.com/@gsonLiang)

@gsonLiang

  
[View profile](https://hashnode.com/@gsonLiang)

nodejs developer, backend enigneer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
