【Android】关于touch设备TOOL_TYPE_STYLUS

这里通过log来查看触控笔的motionEvent,

    @Overridepublic boolean onTouchEvent(MotionEvent event) {Log.i(tag, "event=" + event);return true;}@Overridepublic boolean onGenericMotionEvent(MotionEvent event) {Log.i(tag, "G event=" + event);return true;}

在靠近屏幕时,调用到onGenericMotionEvent

在触碰到屏幕时,调用onTouchEvent,

toolType[0]=TOOL_TYPE_STYLUS

一次点击的完整log

10-14 12:25:30.040  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_ENTER, actionButton=0, id[0]=0, x[0]=2142.9934, y[0]=1068.1862, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=142798665, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=16461402 }
10-14 12:25:30.067  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2146.1409, y[0]=1059.1779, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=13, eventTime=142798692, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=983447964 }
10-14 12:25:30.083  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2148.7458, y[0]=1056.4645, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=7, eventTime=142798710, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=645840300 }
10-14 12:25:30.092  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2149.6143, y[0]=1055.9219, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=1, eventTime=142798713, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=62681315 }
10-14 12:25:30.099  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2152.1106, y[0]=1054.4023, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=5, eventTime=142798726, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=1026885681 }
10-14 12:25:30.108  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2155.041, y[0]=1053.5342, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798734, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=738838838 }
10-14 12:25:30.116  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2157.9717, y[0]=1052.9915, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798742, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=945623392 }
10-14 12:25:30.125  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2160.034, y[0]=1052.9915, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798750, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=209887185 }
10-14 12:25:30.133  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2163.1816, y[0]=1053.4255, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798759, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=372229236 }
10-14 12:25:30.141  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2165.678, y[0]=1054.0768, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798767, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=216054123 }
10-14 12:25:30.150  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2168.3914, y[0]=1054.728, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798775, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=101492618 }
10-14 12:25:30.153  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2171.756, y[0]=1054.9451, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=1, eventTime=142798780, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=861304425 }
10-14 12:25:30.153  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_EXIT, actionButton=0, id[0]=0, x[0]=2171.756, y[0]=1054.9451, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=142798782, downTime=0, deviceId=7, source=0x5002, displayId=0, eventId=866096615 }
10-14 12:25:30.155  6190  6190 I test9   : event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=2171.756, y[0]=1054.9451, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=142798782, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=406230247 }
10-14 12:25:30.158  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2171.539, y[0]=1054.9451, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=2, eventTime=142798785, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=120979047 }
10-14 12:25:30.166  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2170.3452, y[0]=1054.728, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=4, eventTime=142798794, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=72378347 }
10-14 12:25:30.174  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2169.6938, y[0]=1053.9683, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=4, eventTime=142798802, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=72421242 }
10-14 12:25:30.183  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2168.8257, y[0]=1053.2085, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=4, eventTime=142798810, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=507279949 }
10-14 12:25:30.191  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2168.3914, y[0]=1052.7744, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=4, eventTime=142798819, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=103703126 }
10-14 12:25:30.200  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2167.5232, y[0]=1052.6659, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=4, eventTime=142798827, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=385426269 }
10-14 12:25:30.208  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2167.0889, y[0]=1052.2317, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=4, eventTime=142798835, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=752640004 }
10-14 12:25:30.216  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2166.4377, y[0]=1052.1232, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=4, eventTime=142798844, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=42588775 }
10-14 12:25:30.225  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2166.2207, y[0]=1052.1232, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798852, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=1020026684 }
10-14 12:25:30.226  6190  6190 I test9   : event=MotionEvent { action=ACTION_MOVE, actionButton=0, id[0]=0, x[0]=2166.0037, y[0]=1052.1232, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x2000000, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=142798852, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=191886775 }
10-14 12:25:30.232  6190  6190 I test9   : event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=2166.0037, y[0]=1052.1232, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=142798854, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=1059956846 }
10-14 12:25:30.234  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_ENTER, actionButton=0, id[0]=0, x[0]=2165.7866, y[0]=1052.3402, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=142798854, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=156568735 }
10-14 12:25:30.235  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2165.3523, y[0]=1052.5574, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=2, eventTime=142798858, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=277665343 }
10-14 12:25:30.241  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2164.2668, y[0]=1054.0768, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798867, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=98280364 }
10-14 12:25:30.249  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2161.4448, y[0]=1056.4645, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798875, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=421868677 }
10-14 12:25:30.257  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2157.9717, y[0]=1059.0693, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798883, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=485500730 }
10-14 12:25:30.266  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2154.4985, y[0]=1061.3485, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798891, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=152502290 }
10-14 12:25:30.274  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2147.8774, y[0]=1063.5192, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798900, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=926486184 }
10-14 12:25:30.283  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2139.086, y[0]=1066.0155, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=3, eventTime=142798908, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=338019200 }
10-14 12:25:30.291  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2128.7747, y[0]=1070.3568, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=4, eventTime=142798918, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=1058054799 }
10-14 12:25:30.300  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_MOVE, actionButton=0, id[0]=0, x[0]=2126.9294, y[0]=1071.9849, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=2, eventTime=142798924, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=497747189 }
10-14 12:25:30.300  6190  6190 I test9   : G event=MotionEvent { action=ACTION_HOVER_EXIT, actionButton=0, id[0]=0, x[0]=2126.9294, y[0]=1071.9849, toolType[0]=TOOL_TYPE_STYLUS, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=142798928, downTime=142798782, deviceId=7, source=0x5002, displayId=0, eventId=588130330 }

在 Android 中,触控笔(Stylus)是一种特殊的输入设备,它可以提供更精确和细致的输入方式。Android 提供了相应的触控笔事件处理机制,以支持触控笔的使用。

触控笔事件与触摸事件略有不同,因为触控笔通常提供了更多的信息,如压力、倾斜角度等。在处理触控笔事件时,你可以使用以下方法和属性:

  1. onTouchEvent(): 在 View 或 Activity 中重写 onTouchEvent() 方法,可以接收触控笔事件。你可以根据事件的类型和属性来处理触控笔事件。

  2. MotionEvent: 触控笔事件使用 MotionEvent 类表示,它提供了许多有用的方法来获取触控笔事件的信息。例如,使用 event.getToolType() 方法可以检测事件的工具类型,通过 event.getPressure() 方法可以获取触压力度,使用 event.getOrientation() 方法可以获取触控笔的倾斜角度等。

在 Android 中,onGenericMotionEvent() 是一个回调方法,用于处理通用输入事件(Generic Motion Event)。它是 View 类的一个方法,用于接收并处理与输入设备相关的通用事件。

通用输入事件可以包括鼠标、轨迹球、游戏手柄等多种输入设备的事件。这些事件与触摸事件略有不同,因为它们提供了更丰富的输入信息,如鼠标滚轮的滚动、轨迹球的移动、游戏手柄的摇杆操作等。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/104461.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

基于CodeFormer实现图片模糊变清晰,去除马赛克等效果

前言 CodeFormer是一种基于AI技术深度学习的人脸复原模型,由南洋理工大学和商汤科技联合研究中心联合开发。该模型通过结合了VQGAN和Transformer等技术,可以通过提供模糊或马赛克图像来生成清晰的原始图像。可以实现老照片修复、照片马赛克修复、黑白照…

【ARM Coresight 系列文章 9.1 -- ITM 仪器化跟踪宏单元详细介绍】

文章目录 1.1 ITM 介绍1.1.1 ITM 功能介绍1.1.2 Cortex-M ITM 的地址范围1.2 ITM 使用1.2.1 ITM 寄存器介绍1.2.2 Cortex-M7 ITM 代码示例1.2.3 Cortex-M33 ITM 代码示例1.1 ITM 介绍 在debug 调试阶段通常都是使用 printf(printk) 来进行进行 log 输出,然后定位问题。那么如…

排序算法-希尔排序法(ShellSort)

排序算法-希尔排序法(ShellSort) 1、说明 我们知道当原始记录的键值大部分已排好序的情况下插入排序法非常有效,因为它不需要执行太多的数据搬移操作。希尔排序法是D.L.Shell在1959年7月发明的一种排序法,可以减少插入排序法中数…

安全论坛和外包平台汇总

文章目录 一. 网络安全论坛汇总二. 外包平台汇总1. 国内:2. 国外 一. 网络安全论坛汇总 安全焦点BugTraq:http://www.fuzzysecurity.com/Exploit-DB:https://www.exploit-db.com/hackone:https://www.hackerone.com/FreeBuf&…

保护你的爬虫免受CSRF攻击:深入了解CSRF-Token

CSRF(Cross-Site Request Forgery)是一种常见的网络攻击类型,可用于伪装用户发起的请求,因此保护你的爬虫免受CSRF攻击至关重要。在本文中,我们将深入探讨CSRF-Token,它在CSRF保护中的作用以及爬虫如何处理…

Java IO流

IO 即 Input / Output ,输入输出流。IO流在Java中分为输入流和输出流,而根据数据的处理方式又分为字节流和字符流。 Java IO 流的 40 多个类都是从如下 4 个 抽象类基类中派生出来的。 InputStream /Reader : 所有的输入流的基类,前者是字节…

论文阅读之《Learn to see in the dark》

Learning to See in the Dark-CVPR2018 Chen ChenUIUC(伊利诺伊大学厄巴纳-香槟分校) Qifeng Chen, Jia Xu, Vladlen Koltun Intel Labs(英特尔研究院) 文章链接:https://arxiv.org/pdf/1805.01934.pdfhttps://arxiv.org/pdf/1805.01934.p…

rust学习Cell、RefCell、OnceCell

背景 Rust 内存安全基于以下规则:给定一个对象 T,它只能具有以下之一: 对对象有多个不可变引用 (&T)(也称为别名 aliasing)对对象有一个可变引用 (&mut T)(也称为可变性 mutability)这是由 Rust 编译器强制执行的。然而,在某些情况下,该规则不够灵活(this r…

Android Studio展示Activty生命周期

前言 本文章以及之后文章的程序版本使用Android Studio 2022.3.1 Patch 1 版本编辑,使用语言为java,最低支持API 27 Android 8.1,构建工具版本如下: 本文章主要是介绍Activty跳转和删除,以备后续使用,所以就…

pxb 使用物理备份恢复数据库

开源软件 Percona Xtrabackup 可以用于对数据库进行备份恢复,本文为您介绍使用 XtraBackup 工具,将 MySQL 物理备份文件恢复至其他主机上的自建数据库。 注意 如果使用透明加密或 Instant DDL 功能,则无法使用物理备份在自建系统上进行恢复…

sql 注入(4), 盲注

sql 注入, 盲注 盲注适合在页面没有任何回显时使用. 测试页面有变化, 但是没有显示任何异常错误等信息. 情景: url: http://192.168.112.200/security/read.php?id1 服务器数据库名: learn一, boolean盲注 # 盲注可能需要一个一个字符去试探, 字符串处理函数经常会用到. 比…

命令行启动android模拟器

有时候不想打开android studio就能方便的启动模拟器,探索一番后发现可以通过命令行来启动,方便快捷。 环境准备 首先安装好android studio,android sdk,从android studio中安装好模拟器。 命令启动 如果直接在终端输入emulato…

计算机的字符与编码集

文章目录 前言一、字符编码集的历史1.ASCII码2.Extended ASCII码3.字符编码集的国际化 二、中文编码集 前言 今天给大家介绍计算机的字符与编码集,分为两部分:字符编码集的历史、中文编码集。 一、字符编码集的历史 这部分包含三个板块内容&#xff1a…

【通信系列 5 -- HTTPS 介绍】

文章目录 1.1 HTTPS链接网址1.1.1 HTTPS 产生背景1.1.2 HTTPS工作内容1.1.3 SSL/TLS1.1.4 TLS 的命名规范1.1.5 TLS 加密算法1.1.6 分组模式1.1.7 摘要算法1.1.8 非对称加密1.1.9 CA认证 1.2 openssl1.2.1 RSA 签名验签 1.1 HTTPS链接网址 HTTP 是一种 超文本传输协议(Hyperte…

DOCKER本地仓库

概述 随着docker的应用越来越多,安装部署越来越方便,批量自动化的镜像生成和发布都需要docker仓库的本地化应用。 试用了docker的本地仓库功能,简单易上手,记录下来以备后用。 环境 centos:CentOS release 7.0 (F…

CANoe创建仿真工程

CANoe创建仿真工程 写在前面仿真工程的创建创建工程添加CAN数据库添加系统变量创建面板创建网络节点为节点添加代码工程运行测试总结 写在前面 Canoe的安装不是特别方便,我是参加了松勤的培训课程,不仅需要安装软件还需要安装驱动,刚刚学习的…

[程序人生]常用的Linux命令简称与全称

常用的Linux命令简称与全称 引言 学习Linux系统操作的时候,那些命令很难记,让人头大。 本文给出Linux系统中常用的命令简称与全称。 正文 以下是常用的Linux命令简称与全称: pwd (print working directory):显示当前工作目录的…

【PWN · 栈迁移】[CISCN 2019东南]PWN2

一道非常典型、适合用作学习栈迁移的题目。 前言 当存在栈溢出但是溢出字符数并不多的情况下,可以尝试在别处构造rop链,通过栈迁移到目标内存区域,执行rop链。这里不讲栈迁移原理,仅是对题目的分析,适合对栈迁移有初步…

【stm32】外部中断接口函数

1、外部中断回调函数 2、外部中断通用处理函数

React闭包

声明 本文将深入探讨React与闭包之间的关系。 我们将首先介绍React和闭包的基本概念,然后详细解释React组件中如何使用闭包来处理状态和作用域的问题。 通过本文的阅读,你将对React中闭包的概念有更深入的理解,并能够在开发React应用时更好地…