- New Classes: o ProtocolManager - singleton with which all protocols register o ProtocolCollection - Aggregates all registered protocols; exports methods to work on all protocols o StreamBase - aggregates ProtocolCollection with Stream Core and Control; the client/server side stream classes now derive from StreamBase leading to major reduction in their code (more cleanup pending) - AbstractProtocol now supports the additional methods o createInstance() o protocolFrameSize() o protocolFrameOffset(), protocolFramePayloadSize() o protocolId(), payloadProtocolId() o protocolFrameCksum(), protocolFramePayloadCksum() 0 constructor takes an extra param - frameProtoList - Specific protocols - eth2, llc, snap, ip4, udp, tcp now return length, protocol id and cksums correctly (tcp/udp cksum pending) - StreamConfigDialog - protocol controls for length, cksum and protocolid are automatically updated (not fully working yet)
70 lines
1.7 KiB
XML
70 lines
1.7 KiB
XML
<ui version="4.0" >
|
|
<class>payload</class>
|
|
<widget class="QWidget" name="payload" >
|
|
<property name="geometry" >
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>142</width>
|
|
<height>98</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle" >
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QHBoxLayout" >
|
|
<item>
|
|
<widget class="QGroupBox" name="groupBox_6" >
|
|
<property name="title" >
|
|
<string>Data Pattern</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" >
|
|
<item>
|
|
<widget class="QComboBox" name="cmbPatternMode" >
|
|
<item>
|
|
<property name="text" >
|
|
<string>Fixed Word</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text" >
|
|
<string>Increment Byte</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text" >
|
|
<string>Decrement Byte</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text" >
|
|
<string>Random</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lePattern" >
|
|
<property name="inputMask" >
|
|
<string>>HH HH HH HH; </string>
|
|
</property>
|
|
<property name="text" >
|
|
<string> </string>
|
|
</property>
|
|
<property name="maxLength" >
|
|
<number>11</number>
|
|
</property>
|
|
<property name="alignment" >
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|