|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectestella.lib.Payload
public class Payload
Descriptor Payloads (little-endian)
Constructor Summary | |
---|---|
Payload()
|
Method Summary | |
---|---|
byte[] |
ping()
Payload PING 0x00 |
byte[] |
pong(int porta,
java.lang.String host,
int n_arq_comp,
int tam_arq_comp)
Payload PONG 0x01 Estrutura: |porta|host|n_arq_comp|tam_arq_comp| |--|-----|-----|-----| ---> |2|4|4|4| (bytes) Todos inteiros em little-endian |
byte[] |
query(int min_velocidade,
java.lang.String busca)
Payload Query 0x080 |
byte[] |
queryhits()
Payload QueryHits (0x81) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Payload()
Method Detail |
---|
public byte[] ping()
public byte[] pong(int porta, java.lang.String host, int n_arq_comp, int tam_arq_comp)
porta
- - inteiro com a portahost
- - String com o hostn_arq_comp
- - inteiro com o numero de arquivos compartilhadostam_arq_comp
- - inteiro com o tamanho total desses arquivos compartilhados
public byte[] query(int min_velocidade, java.lang.String busca)
min_velocidade
- inteiro com a velocidade minimabusca
- String com a sentenca de caracteres a ser buscada
public byte[] queryhits()
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |