mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
65955601f0
Replaces the former implementation of the 'find_by_port' method at the data structure for permit rules. This method used to return a reference to the found object and threw an exception if no matching object was found. The new implementation doesn't return anything and doesn't throw exceptions. It takes two lambda arguments instead. One for handling the case that a match was found with a reference to the matching object as argument and another for handling the case that no object matches. This way, expensive exception handling can be avoided and object references stay in a local scope. Furthermore, the commit introduces a convenience wrapper for finding the best matching pair of transport rule and corresponding permit rule for a given destination IP and port. This method as well follows the above mentioned concept. Ref #4536 |
||
---|---|---|
.. | ||
doc | ||
include | ||
lib | ||
recipes | ||
run | ||
src | ||
xsd | ||
README |
This source-code repository contains genuine low-level OS components and interfaces of Genode. It solely depends on the framework's base API.