Our Sites
Categories
- Business (35)
- DelphiFeeds.com (94)
- General (43)
- Gurock Software (125)
- Programming (44)
- SmartInspect (132)
- Software Quality (6)
- TestRail (38)
- Virtualization (8)
- Websites (26)
Archives
SmartInspect Pages Cloud
delphi unicode asp.net monitoring debug java debugging log4j logging trace delphi tracing asp.net exceptions errors debug .net debugging log4net log4n .net monitoring debug java debugging vb.net logging trace java tracing java exceptions errors delphi monitoring delphi debugging trace .net tracing delphi exceptions errors nlog asp.net logging tracing eurekalogTestRail Pages Cloud



Filtering out packets based on their size
Among filtering out packets based on their content like in the previous example, another possible usage of the filter event in SmartInspect would be to cancel packets which exceed a certain maximum packet size. This can be useful to reduce bandwidth or to keep log files small. An example implementation looks like:
The Run method of the PacketSizeFilter class is the actual event handler for the Filter event and filters out every packet which exceeds a certain, user-defined packet size limit. In this case, every packet which is bigger than 1024 bytes will be canceled.