ZhangZhihui's Blog  

2023年10月16日

摘要: Problem: You want to process HTTP requests and send back HTTP responses. Solution: Use http.Request to extract information on HTTP requests and http.R 阅读全文
posted @ 2023-10-16 22:31 ZhangZhihuiAAA 阅读(9) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to create a simple web application that responds to an HTTP request and sends back an HTTP response. Solution: Use the net/http pack 阅读全文
posted @ 2023-10-16 20:15 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to create a UDP client to send data to a UDP server. Solution: Use the Dial function in the net package to connect to a UDP server. 阅读全文
posted @ 2023-10-16 19:47 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to create a UDP server to receive data from a UDP client. Solution: Use the ListenPacket function in the net package to listen for i 阅读全文
posted @ 2023-10-16 19:29 ZhangZhihuiAAA 阅读(24) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to create a TCP client to send data to a TCP server. Solution: Use the Dial function in the net package to connect to a TCP server. 阅读全文
posted @ 2023-10-16 14:31 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0) 编辑
 
摘要: Problem: You want to create a TCP server to receive data from a TCP client. Solution: Use the Listen function in the net package to listen for connect 阅读全文
posted @ 2023-10-16 11:06 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0) 编辑
 
摘要: Computer networks use network protocols to communicate with each other. Network protocols are often abstracted into different layers. For example, Ope 阅读全文
posted @ 2023-10-16 10:18 ZhangZhihuiAAA 阅读(15) 评论(0) 推荐(0) 编辑