随笔分类 -  网络

摘要:从HTPP站点下载文件 阅读全文
posted @ 2016-03-17 11:21 gopher-lin 阅读(131) 评论(0) 推荐(0)
摘要:Sockesever模块 阅读全文
posted @ 2016-03-17 10:57 gopher-lin 阅读(143) 评论(0) 推荐(0)
摘要:# Written by Vamei # A messy HTTP server based on TCP socket import socket # Address HOST = '' PORT = 8080 text_content = ''' HTTP/1.x 200 OK Content-Type: text/html WOW Wow, Python Server F... 阅读全文
posted @ 2016-03-17 10:56 gopher-lin 阅读(150) 评论(0) 推荐(0)
摘要:我们写出一个HTTP服务器端: 如我们上面所看到的,服务器会根据request向客户传输的两条信息text_content和pic_content中的一条,作为response文本。整个response分为起始行(start line), 头信息(head)和主体(body)三部分。起始行就是第一行 阅读全文
posted @ 2016-03-17 10:50 gopher-lin 阅读(233) 评论(0) 推荐(0)
摘要:在Python中,我们使用标准库中的socket包来进行底层的socket编程。 Client Sever 阅读全文
posted @ 2016-03-17 10:46 gopher-lin 阅读(137) 评论(0) 推荐(0)
摘要:并发 当有多个线程在操作时,如果系统只有一个CPU,则它根本不可能真正同时进行一个以上的线程,它只能把CPU运行时间划分成若干个时间段,再将时间 段分配给各个线程执行,在一个时间段的线程代码运行时,其它线程处于挂起状。.这种方式我们称之为并发(Concurrent)。 并行: 当系统有一个以上CPU 阅读全文
posted @ 2016-03-17 10:07 gopher-lin 阅读(208) 评论(0) 推荐(0)
摘要:http://kb.cnblogs.com/page/92320/ 阅读全文
posted @ 2016-02-24 10:15 gopher-lin 阅读(133) 评论(0) 推荐(0)
摘要:http://kb.cnblogs.com/page/158829/ 阅读全文
posted @ 2016-02-24 10:04 gopher-lin 阅读(127) 评论(0) 推荐(0)