您好,欢迎光临本网站![请登录][注册会员]  
文件名称: Python网络编程(英文版)
  所属分类: Web开发
  开发工具:
  文件大小: 309kb
  下载次数: 0
  上传时间: 2011-02-04
  提 供 者: longbin*******
 详细说明: Python Network Programming 1 Introduction 4 2 Basic socket usage 5 2.1 Creating a socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2 Connecting a socket and data transfer . . . . . . . . . . . . . . . . . . . . . . . 6 2.3 Binding a name to socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.4 Listening and accepting connections . . . . . . . . . . . . . . . . . . . . . . . . 6 2.5 UDP sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.6 Closin g the socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.7 Using functions provided in socket module . . . . . . . . . . . . . . . . . . . . . 8 2.7.1 Functions based on resolver library . . . . . . . . . . . . . . . . . . . . . 8 2.7.2 Service-related functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.7.3 Miscellaneous functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 Basic network structures design 9 3.1 Designing a TCP server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 The TCP client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.3 Modeling datagram applications . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4 Advanced topics on servers 13 4.1 Building a pristine environment . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2 Handling multiple connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2.1 Threaded servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.2.2 Using select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.2.3 Fork servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.3 Dealing with classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.3.1 Simple connection object . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.3.2 Applying a design pattern . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.4 Advanced aspects concerning clients . . . . . . . . . . . . . . . . . . . . . . . . 22 5 HTTP protocol 23 5.1 CGI module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.1.1 Build a simple CGI script . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.1.2 Using CGI module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.1.3 Con guring Apache on Linux for using with CGI scripts . . . . . . . . . 25 6 Common protocols 26 6.1 Designing Telnet applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.2 File Transfer Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 6.3 SMTP protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 7 TO DOs 30 List of Figures 1 TCP connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 UDP connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: python、网络编程
 输入关键字,在本站1000多万海量源码库中尽情搜索: