Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion course/examples/echo_tcp_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Poll For Linux: [poll(2) — Linux manual page](https://man7.org/linux/man-pages

为了同时兼容 linux 和 windows,我们需要利用一下 zig 的 `builtin` 包来判断构建目标来决定使用的函数(poll 在 windows 上的实现不完全标准)。

完整的代码在 [Github](https://github.com/zigcc/zig-course/tree/main/course/code/release/echo_tcp_server.zig),测试用的客户端可以使用 _telent_(windows、linux、mac 均可用)。
完整的代码在 [Github](https://github.com/zigcc/zig-course/tree/main/course/code/release/echo_tcp_server.zig),测试用的客户端可以使用 _telnet_(windows、linux、mac 均可用)。

_server_ 监听端口的实现:

Expand Down
Loading