|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ami.AMIPacket
Stores an query with destination address and general internal features.
A packet can be sent either to an ip address ( direct mode without check ) or to a peer ( identified by its public key) and mapped with the rt.
Priority of the packet = average priority of queries inside
Note: A packet can contain only one AMIPing query and this one can't be mixed with any other query
Field Summary | |
private AMIPublicKey |
apk
|
private boolean |
bPing
|
private char[] |
cPacketXML
|
private int |
iPriority
|
private int |
iTTL
|
private String |
sIP
|
private Vector |
vQueries
|
Constructor Summary | |
(package private) |
AMIPacket(AMIPublicKey apk)
|
(package private) |
AMIPacket(String sIP)
|
Method Summary | |
(package private) void |
addQuery(AMIQuery aq)
|
(package private) boolean |
contains(AMIQuery aq)
put your documentation comment here |
(package private) void |
decTTL()
decrements time to live |
(package private) void |
generateXML()
Used to refresh raw data of the packet Note that it includes HTTP tuneling and SOAP headers |
(package private) AMIPublicKey |
getApk()
put your documentation comment here |
(package private) char[] |
getData()
Get raw data |
(package private) String |
getIP()
return destination IP ( format: ip:port ) |
(package private) int |
getPriority()
put your documentation comment here |
(package private) Vector |
getQueries()
Get queries vector |
(package private) int |
getTTL()
returns TTL |
(package private) boolean |
isPing()
return bPing value |
(package private) void |
merge(AMIPacket ap)
Merge two ami packets |
private void |
refreshPriority()
put your documentation comment here |
(package private) void |
removeQuery(AMIQuery aq)
|
String |
toString()
Return a string representation of queries inside this packet |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String sIP
private AMIPublicKey apk
private int iPriority
private Vector vQueries
private char[] cPacketXML
private int iTTL
private boolean bPing
Constructor Detail |
AMIPacket(String sIP)
AMIPacket(AMIPublicKey apk)
Method Detail |
void addQuery(AMIQuery aq)
void removeQuery(AMIQuery aq)
private void refreshPriority()
void generateXML()
Note that it includes HTTP tuneling and SOAP headers
boolean contains(AMIQuery aq)
aq
- String getIP()
AMIPublicKey getApk()
int getPriority()
Vector getQueries()
char[] getData()
void decTTL()
int getTTL()
boolean isPing()
void merge(AMIPacket ap)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |