假定客户端执行主动打开,服务器执行被动打开,客户端发送syn包到服务器,服务器接收该包,进行建立连接请求的相关处理,即第一次握手;本文主要分析第一次握手中被动打开端的处理流程,主动打开端的处理请查阅本博客内另外的文章; IPv4携带的TCP报文最终会进入到tcp_v4_do_rcv函数,服务器准备接 ...
分类:
其他好文 时间:
2019-10-28 11:06:48
阅读次数:
177
多态性是将接口与实现进行分离;用形象的语言来解释就是实现以共同的方法,但因个体差异,而采用不同的策略。 虚函数和纯虚函数都是实现多态的重要方法。本文就这两种方法进行分析以及比较 1、虚函数 在基类中声明为 virtual 并在一个或者多个派生类被重新定义的成员函数 语法规则:virtual 函数返回 ...
分类:
其他好文 时间:
2019-10-26 14:53:36
阅读次数:
94
博客原文地址:https://www.cnblogs.com/qq260250932/p/5361043.html using System; using System.Collections.Generic; using System.Linq; using System.Text; using ...
模块cv2: https://www.cnblogs.com/shizhengwen/p/8719062.html opencv 的文档: https://docs.opencv.org/master/ 常用方法: 一、读入图像 使用函数cv2.imread(filepath,flags)读入一副图 ...
分类:
其他好文 时间:
2019-10-24 00:39:31
阅读次数:
83
VisionPro初学--记录脚本 如果有错误或者繁琐的地方,请高手多多指教 #region namespace imports using System; using System.Collections; using System.Drawing; using System.IO; using ...
分类:
其他好文 时间:
2019-10-21 17:52:03
阅读次数:
554
摘自:https://www.cnblogs.com/yuanchenhui/p/screenshot-easy.html 采用WPF开发截图程序,so easy! 前言 QQ、微信截图功能已很强大了,似乎没必要在开发一个截图程序了。但是有时QQ热键就是被占用,不能快速的开启截屏;有时,天天挂着QQ ...
Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2 ...
分类:
其他好文 时间:
2019-10-17 13:28:18
阅读次数:
64
//extern_cpp.h //cppfunc.h //cppfunc.cpp //mainc.c //maincpp.cpp ...
分类:
编程语言 时间:
2019-10-16 17:42:59
阅读次数:
74
使用OpenCV-Python 的画图函数画图。 本次的图形函数有: cv2.line(), cv2.circle(), cv2.rectangle(), cv2.ellipse(), cv2.putText(). 以上函数都包含以下参数: img: 你需要画图形的图片 color: 图形的颜色, ...
分类:
编程语言 时间:
2019-10-16 16:19:47
阅读次数:
151
// 返回值:arg1加上arg2的精确结果 function accAdd(arg1, arg2) { var r1, r2, m; try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 }; try { r2 =... ...
分类:
Web程序 时间:
2019-10-14 17:26:00
阅读次数:
151