# 網路程式開發工具(UNIX Networking Programming Volume 1)
## reading prpgress - "1.6 Roadmap to Client/Server Examples in the Text" p.50
* secure network programs are found in Chapter 23(p.49)
* number of listen queue(Section 4.5)
* TCP's three-wayhandshake Section 2.6(p.49)
* getaddrinfo(Figure11.13)
* concurrent server(Section 4.7)
* concurrent threads(Section 26.4)
* pre fork concurrent server(Section 30.6)
* make a daemon server(Section 13.4)
使用listen api將socket狀態從CLOSED變成 LISTEN
if two process or threads trigger error.how to use semaphore or mutex to check the right access prioroty for error code to get the right error code for the causing entity.
[http 觀念](https://blog.toright.com/posts/1203/%E6%B7%BA%E8%AB%87-http-method%EF%BC%9A%E8%A1%A8%E5%96%AE%E4%B8%AD%E7%9A%84-get-%E8%88%87-post-%E6%9C%89%E4%BB%80%E9%BA%BC%E5%B7%AE%E5%88%A5%EF%BC%9F.html)
Windows:
hfd(http file downlowd server)
```bash=
echo -en "{\"cmd\":\"setSw\",\"index\":4,\"val\":0}\n\r" | nc 192.168.0.100 2390
2003:raw:0:/dev/ttyS1:57600 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
```
Linux:
[1.apache2(http file downlowd server)](https://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=8829)
[2.nc 1](https://blog.gtwang.org/linux/linux-utility-netcat-examples/)
[3.nc port scan](https://www.cyberciti.biz/faq/linux-port-scanning/)
[4.netstat](https://blog.gtwang.org/linux/linux-netstat-command-examples/)
[5.curl test for web service development](https://blog.techbridge.cc/2019/02/01/linux-curl-command-tutorial/)
[6.ser2net安裝使用說明](https://www.twblogs.net/a/5c0cf2e4bd9eee5e40ba9510)
[7.使用 curl 工具進行簡單的 http 測試](https://www.eebreakdown.com/2016/10/curl-http.html)
[8.Linux Curl Command 指令與基本操作入門教學](https://blog.techbridge.cc/2019/02/01/linux-curl-command-tutorial/)
###### tags: `linux` `network` `nc` `netstat` `curl` `socket`