当前位置:网站首页>Laravel listening mode

Laravel listening mode

2022-06-11 16:07:00 Chenqing Nuo language

Monitor mode (monitor mode), or RFMON(Radio Frequency MONitor), Refer to wireless network card Can receive all the data flow through it , Corresponding to IEEE 802.11 Other modes of network card , Such as Master( Router )、Managed( Normal mode network card )、Ad-hoc etc. . The listener mode does not distinguish between the received Data packets The goal of MAC Address , This and Hybrid mode similar . However , Unlike the hybrid model , Listener mode does not need and Wireless access point (AP) or Ad-hoc Network connection . Monitoring mode is a special mode of wireless network card , Hybrid mode is applied to wired network card and wireless network card .

Listener mode is usually used for network discovery 、 Traffic monitoring and Group analysis .LinuxMac OS X、Windows And other things Unix-like The platform has network discovery using listener mode 、 Caught tools , Such as KisMAC、Kismet、WiresharkAircrack-NG etc. . 

2.laravel Chinese document   The event system | further |《Laravel 8 Chinese document 8.5》| Laravel China Community

The event system

Generate events and listeners

Add listeners and events to EventServiceProvider And use event:generate Artisan command . This command will generate EventServiceProvider Listed in the 、 Any events or listeners that do not yet exist :

php artisan event:generate

You can use  make:event  as well as  make:listener  For generating single events and listeners Artisan command :

php artisan make:event PodcastProcessed

php artisan make:listener SendPodcastNotification --event=PodcastProcessed

The discovery of events

Event discovery is disabled by default , But you can override the application's  EventServiceProvider  Of  shouldDiscoverEvents  Method to enable it :

    /**
     *  Determine whether to apply autodiscover events and listeners .
     *
     * @return bool
     */
    public function shouldDiscoverEvents()
    {
        return true;
    }

Test the controller call

PodcastProcessed

EventServiceProvider

SendPodcastNotification

 

 

  Ook \(^o^)/~

原网站

版权声明
本文为[Chenqing Nuo language]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206111554494150.html