RawPacketHandler
in
Table of Contents
- getPattern() : string
- Returns a preg_match() compatible regex pattern used to filter packets on this handler. Only packets matching this pattern will be delivered to the handler.
- handle() : bool
Methods
getPattern()
Returns a preg_match() compatible regex pattern used to filter packets on this handler. Only packets matching this pattern will be delivered to the handler.
public
getPattern() : string
Return values
string —handle()
public
handle(AdvancedNetworkInterface $interface, string $address, int $port, string $packet) : bool
Parameters
- $interface : AdvancedNetworkInterface
- $address : string
- $port : int
- $packet : string