
网络编程
银灯玉箫
这个作者很懒,什么都没留下…
展开
-
libprocess-flag and flags
the definition of FlagFlag includes Name. Flagsbase include a map of flag in which key is a String and value is a Flag.struct Namestruct Flagclass Flagsbase原创 2020-10-15 20:05:36 · 179 阅读 · 0 评论 -
libprocess-future and promise
The Future and Promise primitives are used to enable programmers to write asynchronous, non-blocking, and highly cocurrent software.PromiseA Promise is not copyable or assignable, in order to encourage strict ownership rules between processes.You can g原创 2020-10-15 19:58:18 · 160 阅读 · 0 评论 -
Libprocess 学习2
继承关系ProtobufProcess -> process -> ProcessBase –> EventVistorprocessManager 管理者,管理所有的process// Map of all local spawned and running processes. map<string, ProcessBase*> processes;// Stores the thread handles so that we can join during原创 2020-08-26 08:53:12 · 497 阅读 · 1 评论 -
Unix 网络编程学习笔记--第6章 I/O 复用: select 和poll 函数
I/O 复用(I/O multiplexing) (select/poll)内核一旦发现进程指定的一个或多个I/O 条件就绪(输入已准备好被读取,或者描述字已经能承接更多的输出),它就通知进程。#include <sys/select.h>#include <sys/time.h>int select(int maxfdp1, fd_set *readset, fd_set* writeset,翻译 2018-03-27 10:58:13 · 178 阅读 · 0 评论 -
网络地址分类(公网地址和私有地址)
A 类地址的第一组数字为1~126, 数字0和数字127 不作为A类地址,数字127 保留给内部回送函数,而数字0 表示该地址是本地宿主机,不能传送。B 类地址的第一组数字为128~91C 类地址的第一组数字为192~223D 类IP地址的第一段数字范围为224~239何为私有地址? 私有地址可以自己组网时用,但不能在Internet 网上用,Internet 网没有这些地址的路由,有这些地址的计...原创 2018-05-11 16:47:27 · 10053 阅读 · 0 评论