Python Network programming

Source: Internet
Author: User

1. Write the basic TCP connection, know the steps to write TCP, such as creating a socket, binding port, port multiplexing, and so on, a little understanding of TCP, know each field of the protocol, understand the three-time handshake.
2. Understand the basic server concurrency model, such as multi-process, multi-threading, Io multiplexing
3. Learn about some network libraries such as twisted

It is unclear whether you are referring to the underlying network programming or the application-specific web development. If it is a website, it is web development, it is recommended to look at the Python Web development framework, recommended from Django, the document more detailed
Django:https://www. djangoproject.com/

Socket programming in Python Here's a simple tutorial

Python network programming is a big category, the personal feeling need to grasp the points are:
1. How to use Python to create a socket, how to bind a socket to a specified IP address and port, use a socket to send data, accept data,
2. How to work with threads in Python to write a Web server that can handle multiple requests at the same time
3. How to use Python to control the logic of the HTTP layer, including how to create an HTTP Get,post,put,delete request, how to handle the received HTTP request, which are related to Python httplib, basehttpserver and other modules
4. Master a basic Python web development framework, such as Webpy, Django,pylon
5. Understand the non-blocking HTTP Server, such as tornado
6. Learn about twisted, a message-driven network engine written by Python

References:
Basic knowledge of the network
1. Http:the Definitive Guidehttp://www. amazon.com/http-definitive-guide-david-gourley/dp/1565925092/
2. Computer Networking:a Top-down Approachhttp://www. amazon.com/computer-networking-top-down-approach-edition/dp/0136079679/ref

Python Network Programming Basics
1. Python Network programminghttp://www. amazon.com/foundations-python-network-programming-goerzen/dp/1590593715
2. Python Socket Programming Documentationhttp/docs.python.org/library/socket.html
3. Python Httplib Documentationhttp/docs.python.org/library/httplib.html

Python Common Framework Documentation:
1. Django's official websitehttps://www. djangoproject.com/
2. Twisted's official websitehttp/twistedmatrix.com/trac/
3. Tornado's official websitehttp://www. tornadoweb.org/

Http://www.cnblogs.com/xiaowuyi/category/426565.html

Http://bbs.chinaunix.net/thread-4165614-1-1.html

    • Python Network Programming Learning Note: WEBPY framework
    • Python Network Programming Learning Note (ix): Database client Db-api
    • Python Network Programming Learning Note (eight): XML generation and parsing (DOM, ElementTree)
    • Python Network Programming Learning Note (vii): HTML and XHTML parsing (Htmlparser, BeautifulSoup)
    • Python Network Programming Learning Note (vi): Web Client Access
    • Python Network Programming Learning Note (v): Some additions to the socket
    • Python Network Programming Learning Note (iv): Domain Name System
    • Python Network Programming Learning Note (III): Socket network server
    • Python Network Programming Learning Note (ii): Socket set up network client
    • Examples of TCP communication examples and socketserver frameworks used in Python network programming
    • Python network programming UDP communication instance (including server side, client, UDP broadcast example)
    • Python Socket Network programming steps (Socket sockets use)
    • Read Web site Root instance of Python network programming

Python Network programming

Related Article

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.