Network programming Pan-Talk

Source: Internet
Author: User

The purpose of this paper is to collate the problems in the process of network programming in order to deepen their understanding and also for readers ' reference.

Reference book: "UNIX Network Programming"

The following aspects are introduced:

  • Basic knowledge of network programming (TCP/IP protocol)
  • Example of a TCP client/server (Echo Service)
  • Efficient network programming: blocking/non-blocking, synchronous/asynchronous, Io multiplexing (Select/poll/epoll learning, cross-platform encapsulated library Libev)
    • Echo Service for non-blocking +io multiplexing
  • Master/worker programming model in Network development: NGINX/UWSGI (Discussion of the next surprise group problem)
    • Echo Service for multi-process + non-blocking +io multiplexing
  • Use Python to write an HTTP (https) Proxy: Pyproxy
  • Summarize
  • Appendix Common Tools and FAQs:
    1. Tcpdump/wireshark/strace use
    2. Client/Server Exception conditions
      1. Client normal disconnect (send Fin pack)
      2. Client exception crash (send fin packet)
      3. The client suddenly breaks the net (no fin packets are sent, no longer responds)
      4. Server terminated normally (send Fin pack)
      5. Server exception crash (send fin packet)
      6. Server exception restart after crash
      7. The server suddenly breaks the net (not sending fin packets, no longer responds)
    3. Connection aborted before accept return

Network programming Pan-Talk

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.