|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface ProtocolInfo.Binding
Binding between protocols. Describes the conditions of how one protocol is bound to another. Typically in a packet, each protocol provides a header to describe its state. The headers are stacked one after the other. The previous protocol usually, but not neccessarily carries informaton about what next protocol should follow it. This information, sometimes in a form of a complex expression, is evaluated against a runtime version of a packet.
| Method Summary | |
|---|---|
int |
getHitCounter()
Hit counter for this binding. |
java.util.Set<ProtocolInfo<? extends Header>> |
getProtocolReferences()
List of protocols that this binding references and therefore is dependent on. |
ProtocolInfo<? extends Header> |
getSink()
Returns the sink protocol of this binding. |
ProtocolInfo<? extends Header> |
getSource()
Returns the source protocol of this binding. |
| Methods inherited from interface org.jnetstream.protocol.codec.Scanner.Scandec |
|---|
getLength |
| Method Detail |
|---|
java.util.Set<ProtocolInfo<? extends Header>> getProtocolReferences()
ProtocolInfo<? extends Header> getSink()
ProtocolInfo<? extends Header> getSource()
int getHitCounter()
The hit counter is used to prioritize protocol bindings. The bindings are ordered according to their hit counter. This ensures that a binding that is used more often is at the top of the binding list and has a chance to be matched before any other.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||