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

The base header (26 bytes, little endian) in front of every message. More...

Collaboration diagram for de.yaacc.snapcast.protocol.MessageHeader:
Collaboration graph

Public Member Functions

 MessageHeader (int type, int id, int refersTo, int sentSec, int sentUsec, int receivedSec, int receivedUsec, int size)
 
int getType ()
 
int getId ()
 
int getRefersTo ()
 
int getSentSec ()
 
int getSentUsec ()
 
int getReceivedSec ()
 
int getReceivedUsec ()
 
int getSize ()
 
long sentMicros ()
 The sent time as microseconds (seconds times a million plus the microseconds, as long arithmetic).
 
long receivedMicros ()
 

Detailed Description

The base header (26 bytes, little endian) in front of every message.

Immutable.

Constructor & Destructor Documentation

◆ MessageHeader()

de.yaacc.snapcast.protocol.MessageHeader.MessageHeader ( int type,
int id,
int refersTo,
int sentSec,
int sentUsec,
int receivedSec,
int receivedUsec,
int size )
Parameters
typethe message type (0 to 65535)
idthe id of the message (0 to 65535)
refersTothe id of the request this answers (0 to 65535)
sizethe size of the typed message that follows (0 or more)

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