YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.protocol.FCastPacket Class Reference

One packet of the wire: the raw opcode number and the body text (null when the packet had no body). More...

Collaboration diagram for de.yaacc.fcast.protocol.FCastPacket:
Collaboration graph

Public Member Functions

 FCastPacket (int opcode, String body)
 
 FCastPacket (int opcode, String body, byte[] raw)
 A packet whose body is binary (the Flatbuf packet of v4): the bytes, no text.
 
byte[] getRaw ()
 The bytes of a binary body, or null (a text body, or no body).
 
int getOpcodeCode ()
 The wire value of the opcode (0 to 255).
 
FCastOpcode getOpcode ()
 The opcode, or null if the number is not one of protocol v3.
 
String getBody ()
 
String toString ()
 

Detailed Description

One packet of the wire: the raw opcode number and the body text (null when the packet had no body).

Immutable.


The documentation for this class was generated from the following file: