当前位置:网站首页>laravel 监听模式
laravel 监听模式
2022-06-11 15:55:00 【陈卿诺语】
监听器模式(monitor mode),或RFMON(Radio Frequency MONitor),是指无线网卡可以接收所有经过它的数据流的工作方式,对应于IEEE 802.11网卡的其他模式,诸如Master(路由器)、Managed(普通模式的网卡)、Ad-hoc等。监听器模式不区分所接收数据包的目标MAC地址,这点和混杂模式类似。然而,和混杂模式不同的是,监听器模式的不需要和无线接入点(AP)或Ad-hoc网络建立连接。监听模式是无线网卡特有的特殊模式,而混杂模式应用于有线网卡和无线网卡。
监听器模式通常用于网络发现、流量监听和分组分析。Linux、Mac OS X、Windows以及其他Unix-like平台有使用监听器模式的网络发现、抓包工具,如KisMAC、Kismet、Wireshark、Aircrack-NG等。
2.laravel中文文档 事件系统 | 继续深入 |《Laravel 8 中文文档 8.5》| Laravel China 社区
事件系统
生成事件和监听器
将监听器和事件添加到 EventServiceProvider 并使用 event:generate Artisan 命令。此命令将生成 EventServiceProvider 中列出的、尚不存在的任何事件或侦听器:
php artisan event:generate你可以使用 make:event 以及 make:listener 用于生成单个事件和监听器的 Artisan 命令:
php artisan make:event PodcastProcessed
php artisan make:listener SendPodcastNotification --event=PodcastProcessed事件的发现
事件发现在默认情况下是禁用的,但是你可以通过覆盖应用程序的 EventServiceProvider 的 shouldDiscoverEvents 方法来启用它:
/**
* 确定是否应用自动发现事件和侦听器。
*
* @return bool
*/
public function shouldDiscoverEvents()
{
return true;
}测试一下控制器调用

PodcastProcessed

EventServiceProvider

SendPodcastNotification



欧克\(^o^)/~
边栏推荐
- 完整的测试流程【杭州多测师】【杭州多测师_王sir】
- [daily question series]: how to test web forms?
- 使用Cloud DB构建APP 快速入门-Server篇
- Aaai2022 latest "time series data processing" report, 127 pages of PPT describing time series data processing and medical application progress
- WGet command use
- [golang] leetcode special training - array and slice
- Basic SQL statement - delete / update
- 干掉 Swagger UI,这款神器更好用、更高效!
- Classmate, have you heard of mot?
- Dapr mind map
猜你喜欢

How to optimize the performance of compose? Find the answer through "underlying principles" | developers say · dtalk

鼻孔插灯,智商上升,风靡硅谷,3万就成

AutoRunner自动化测试工具如何创建项目-Alltesting|泽众云测试

AGC安全规则是如何简化用户授权和验证请求

Zero foundation self-study software test, I spent 7 days sorting out a set of learning routes, hoping to help you

AI tool for cutting-edge technology exploration: analog detection

Talk about data center network again

postgresql启动过程

PyQt5 使QPlainTextEdit控件支持行号显示

前沿科技探究之AI工具:Anomaly-detection
随机推荐
推开混合云市场大门,Lenovo xCloud的破局之道
AI function of cutting-edge technology exploration: slow SQL discovery
Graduation project wechat applet OUC campus navigation (I) topic selection and opening report
Export configuration to FTP or TFTP server
After reading the book reading methods
Nat Commun|语言模型可以学习复杂的分子分布
项目工作区创建步骤-泽众AR自动化测试工具
Collect | thoroughly understand the meaning and calculation of receptive field
Overview and operation of database dense equivalent query
Go Language - value type and Reference Type
[golang] leetcode special training - array and slice
[Yugong series] June 2022 Net architecture class 078 worker cluster of distributed middleware schedulemaster
GO语言-数组Array
Ai4db: AI slow SQL root cause analysis
Opengauss enterprise installation
Database design recommendations
CLP information - No. 1 central document on Strengthening Rural Revitalization financial services
网站上的 breadcrumb 使用场景浅析
Classmate, have you heard of mot?
轻松上手使用gs_dump和gs_dumpall命令导出数据