UniPRT SDK  v2.0.0.1
com.UniPRT.Sdk.Discovery.DiscoveryPacket Class Reference

Classes

enum  Brand
 

Public Member Functions

 DiscoveryPacket (Brand brand)
 
int getBroadcastPort ()
 
byte[] getDiscoveryRequestPacket () throws Exception
 
String decodeIpAddress (byte[] data) throws Exception
 

Public Attributes

String broadcastAddress = "255.255.255.255"
 
String responseAddress
 
String gatewayAddress
 
int responsePort
 

Private Member Functions

byte[] getTscPacket ()
 
byte[] getPtxPacket (int senderIP, short senderPort)
 

Private Attributes

Brand brand
 

Static Private Attributes

static final int TSC_TX_PORT = 22368
 
static final int PTX_TX_PORT = 9
 
static final int PTX_MAGIC_NUM = 0x00807202
 

Constructor & Destructor Documentation

◆ DiscoveryPacket()

com.UniPRT.Sdk.Discovery.DiscoveryPacket.DiscoveryPacket ( Brand  brand)

Member Function Documentation

◆ decodeIpAddress()

String com.UniPRT.Sdk.Discovery.DiscoveryPacket.decodeIpAddress ( byte[]  data) throws Exception

◆ getBroadcastPort()

◆ getDiscoveryRequestPacket()

◆ getPtxPacket()

byte [] com.UniPRT.Sdk.Discovery.DiscoveryPacket.getPtxPacket ( int  senderIP,
short  senderPort 
)
private

◆ getTscPacket()

byte [] com.UniPRT.Sdk.Discovery.DiscoveryPacket.getTscPacket ( )
private

Member Data Documentation

◆ brand

◆ broadcastAddress

String com.UniPRT.Sdk.Discovery.DiscoveryPacket.broadcastAddress = "255.255.255.255"

◆ gatewayAddress

String com.UniPRT.Sdk.Discovery.DiscoveryPacket.gatewayAddress

◆ PTX_MAGIC_NUM

final int com.UniPRT.Sdk.Discovery.DiscoveryPacket.PTX_MAGIC_NUM = 0x00807202
staticprivate

◆ PTX_TX_PORT

final int com.UniPRT.Sdk.Discovery.DiscoveryPacket.PTX_TX_PORT = 9
staticprivate

◆ responseAddress

String com.UniPRT.Sdk.Discovery.DiscoveryPacket.responseAddress

◆ responsePort

◆ TSC_TX_PORT

final int com.UniPRT.Sdk.Discovery.DiscoveryPacket.TSC_TX_PORT = 22368
staticprivate

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