See: Description

| Class | Description |
|---|---|
| AbstractLocalPacket |
This class represents Abstract Packet with its header, middle and end parts.
|
| AuthentPacket |
Request Authentication class
header = "hostId" middle = "key bytes" end = localId + way + (optional
version: could be a JSON on the form
version.{})
|
| BlockRequestPacket |
Block Request Message class
1 code (byte as 0: unblock, 1:block): block, 1 string: spassword(or key)
|
| BusinessRequestPacket |
Business Request Message class for packet
1 string and on integer and one byte:
- sheader = full text with class at first place, following (space separated) by extra arguments - smiddle = integer - send = byte |
| ConnectionErrorPacket |
Connection Error Message class for packet
2 strings: sheader,smiddle
|
| DataPacket |
Data packet
header = packetRank middle = data end = key
|
| EndRequestPacket |
End of Request class
header = Error.code middle = way end = might be empty
|
| EndTransferPacket |
End of Transfer class
header = "request" middle = way end = might be empty
|
| ErrorPacket |
Error Message class for packet
2 strings+1 error code: sheader,smiddle,code
|
| InformationPacket |
Information of files class
header = "rulename" middle = requestedInfo end = "FILENAME"
|
| JsonCommandPacket |
Json Command Message class for packet
2 strings and one byte: request,result,send
|
| KeepAlivePacket |
Keep Alive class
header = empty middle = way end = empty
|
| LocalPacketCodec |
Local Packet Decoder
|
| LocalPacketFactory |
Factory to create Packet according to type from a buffer
|
| NoOpPacket |
No Op class
header = empty middle = empty end = empty
|
| RequestPacket |
Request class
header = "rulename MODETRANS" middle = way+"FILENAME BLOCKSIZE RANK specialId
code (optional length)" end =
"fileInformation"
or
header = "{rule:rulename, mode:MODETRANS}" middle = way{filename:FILENAME,
block:BLOCKSIZE, rank:RANK,
id:specialId, code:code, length:length}" end = "fileInformation"
|
| ShutdownPacket |
Shutdown Message class for packet
1 string: spassword(or key) + 1 byte (optional) to restart (if not null)
|
| StartupPacket |
Startup Message class
1 localId (Integer): localId
|
| TestPacket |
Test class for packet
3 strings: sheader,smiddle,send
|
| ValidPacket |
Validation Message class for packet
2 strings and one byte: sheader,smiddle,send
|
| Enum | Description |
|---|---|
| InformationPacket.ASKENUM | |
| RequestPacket.FIELDS | |
| RequestPacket.TRANSFERMODE |
Copyright © 2009–2020 Waarp. All rights reserved.