随笔分类 -  TCP/IP网络编程

摘要:2019-12-18 08:44:49 阅读全文
posted @ 2019-12-18 08:57 JasonPeng1
摘要:2019-12-17 13:08:33 阅读全文
posted @ 2019-12-17 13:09 JasonPeng1
摘要:2019-12-17 10:14:57 /** * Module dependencies. */ var http = require('http') , fs = require('fs') /** * Create our server. */ var server = http.create 阅读全文
posted @ 2019-12-17 10:35 JasonPeng1
摘要:2019-12-16 21:04:14 require('http').createServer(function (req, res) { res.writeHead(200); res.end('Hello World'); }).listen(3000); require('http').cr 阅读全文
posted @ 2019-12-17 08:47 JasonPeng1
摘要:2019-12-16 20:12:38 require('http').createServer(function(req,res){ res.writeHead(200,{'Content-Type':'text/html'}); res.end('<h1>Hello World</h1>'); 阅读全文
posted @ 2019-12-16 21:04 JasonPeng1
摘要:2019-11-20 09:23:18 参考:https://github.com/remzi-arpacidusseau/ostep-projects/tree/master/concurrency-webserver Overview In this assignment, you will b 阅读全文
posted @ 2019-11-20 09:25 JasonPeng1
摘要:2019-11-19 17:54:00 参考:https://github.com/riba2534/TCP-IP-NetworkNote/tree/master/ch24 24.1 HTTP 概要 本章将编写 HTTP(HyperText Transfer Protocol,超文本传输协议)服务器 阅读全文
posted @ 2019-11-19 18:58 JasonPeng1
摘要:2019-11-19 15:12:47 参考:https://blog.csdn.net/qq_29108585/article/details/78177278 阅读全文
posted @ 2019-11-19 15:13 JasonPeng1
摘要:2019-11-19 13:09:52 参考:https://github.com/riba2534/TCP-IP-NetworkNote/tree/master/ch18 18.1 理解线程的概念 18.1.1 引入线程背景 第 10 章介绍了多进程服务端的实现方法。多进程模型与 select 和 阅读全文
posted @ 2019-11-19 15:12 JasonPeng1
摘要:2019-11-19 08:17:40 参考:https://github.com/riba2534/TCP-IP-NetworkNote/tree/master/ch15 15.1 标准 I/O 的优点 15.1.1 标准 I/O 函数的两个优点 下面是标准 I/O 函数的两个优点: 标准 I/O 阅读全文
posted @ 2019-11-19 11:39 JasonPeng1
摘要:2019-11-19 00:19:02 参考大佬:https://github.com/LinHaoo/chat Makefile: all:server client server:server.cpp g++ $^ -o $@ client:client.cpp g++ $^ -o $@ cle 阅读全文
posted @ 2019-11-19 00:22 JasonPeng1
摘要:2019-11-18 22:12:21 参考:https://github.com/riba2534/TCP-IP-NetworkNote/tree/master/ch14 14.1.1 多播的数据传输方式以及流量方面的优点 多播的数据传输特点可整理如下: 多播服务器端针对特定多播组,只发送 1 次 阅读全文
posted @ 2019-11-18 23:49 JasonPeng1
摘要:2019-11-17 22:44:32 8.1 域名系统 DNS 是对IP地址和域名进行相互转换的系统,其核心是 DNS 服务器 8.1.1 什么是域名 域名就是我们常常在地址栏里面输入的地址,将比较难记忆的IP地址变成人类容易理解的信息。 8.1.2 DNS 服务器 相当于一个字典,可以查询出某一 阅读全文
posted @ 2019-11-17 23:13 JasonPeng1 阅读(410) 评论(0) 推荐(0)