HosrDiretta
Loading...
Searching...
No Matches
DIRETTA::Find Class Reference

Diretta detects the target. More...

#include <Find.hpp>

Inheritance diagram for DIRETTA::Find:
DIRETTA::Connection

Classes

struct  AlternateInfo
 Get Alternate firmware information from target. More...
 
struct  FindTargetSt
 Target search result structure. More...
 
struct  Setting
 Setting structure for Find class. More...
 
class  StatusSort
 Status sorting list type. More...
 
struct  StatusSortSt
 Status sorting structure. More...
 
struct  SynchroNodeInfo
 Synchronization node information. More...
 
struct  TargetConnectInfo
 Target Port(sink) Information. More...
 
struct  TargetSettingInfo
 Set target configure information string. More...
 
struct  TargetStatusInfo
 Target Status Information. More...
 

Public Types

enum class  ICON {
  LOGO =1 , LOGO_SMALL =2 , LOGO_MONO =3 , LOGO_MONO_SMALL =4 ,
  DEVICE =5 , DEVICE_SMALL =6 , DEVICE_MONO =7 , DEVICE_MONO_SMALL =8 ,
  SINK =1|(1<<16) , SINK_SMALL =2|(1<<16) , SINK_MONO =3|(1<<16) , SINK_MONO_SMALL =4|(1<<16) ,
  STATUS =1|(2<<16) , STATUS_SMALL =2|(2<<16) , STATUS_MONO =3|(2<<16) , STATUS_MONO_SMALL =4|(2<<16)
}
 Icon type.
 
enum  MODE {
  SINK = 1 , SYNC = 2 , MEMORY = 4 , AUDIO_OUTPUT = 8 ,
  AUDIO_INPUT = 16 , AUDIO_OUTPUT_SINK = AUDIO_OUTPUT| SINK , AUDIO_INPUT_SINK = AUDIO_INPUT | SINK , AUDIO_MEMORY = MEMORY | AUDIO_OUTPUT
}
 Target search mode.
 
typedef std::map< ACQUA::IPAddress, FindTargetStTargetResalts
 Target list type.
 
typedef std::map< ACQUA::IPAddress, TargetConnectInfoPortResalts
 Target Port(sink) Information list type.
 
typedef std::map< ACQUA::IPAddress, TargetStatusInfoStatusResalts
 Target Status Information list type.
 

Public Member Functions

 Find (const Setting &)
 Constructor.
 
 Find (const Setting &, ACQUA::EthernetSocket &)
 Constructor.
 
 ~Find ()
 Destructor.
 
bool open ()
 open socket all interface
 
bool open (const std::list< ACQUA::IPAddress > &interfaces)
 open socket select interfaces
 
bool open (const std::list< std::string > &interfaces)
 open socket select interfaces
 
bool open (const ACQUA::IPAddress &add)
 open socket
 
bool open (uint16_t ifno)
 open socket select interfaces
 
bool findOutput (PortResalts &resalts)
 find output sink.
 
bool findOutput (const TargetResalts &tl, PortResalts &resalts)
 find output sink. Do not perform target detection.
 
bool getOutput (const ACQUA::IPAddress &targetAdd, std::uint16_t tO, ACQUA::IPAddress &resaltAdd, TargetConnectInfo &resaltInfo)
 find output target.
 
bool findStatus (StatusResalts &resalts)
 find status control.
 
bool findStatus (const TargetResalts &tl, StatusResalts &resalts)
 find status control. Do not perform target detection.
 
bool downloadIcon (ACQUA::IPAddress, ICON, Icon &)
 download icon from target
 
bool downloadIcon (ACQUA::IPAddress, ICON, Icon &, std::uint16_t)
 download icon from target with timeout
 
void close ()
 close all socket
 
bool findTarget (TargetResalts &)
 Send a multicast to detect the Diretta Target.
 
bool findTarget (PortResalts &resalts, MODE mo)
 find target port
 
bool findTarget (const TargetResalts &, PortResalts &resalts, MODE)
 find target port. Do not perform target detection.
 
bool findTarget (StatusResalts &resalts)
 find status
 
bool findTarget (const TargetResalts &, StatusResalts &resalts)
 find status. Do not perform target detection.
 
bool pingTarget (ACQUA::IPAddress)
 Confirming the existence of Diretta Target (like ping)
 
bool Transfer (ACQUA::IPAddress, int, ACQUA::BufferCS_const, size_t limit, std::function< void(std::uint16_t, std::uint16_t)>)
 Transfer DFirmware to target with progress callback.
 
bool Transfer (ACQUA::IPAddress, int, ACQUA::BufferCS_const, size_t limit=0)
 Transfer DFirmware to target.
 
bool TransferFinish (ACQUA::IPAddress, int, std::uint16_t &, std::uint16_t &)
 Finish DFirmware transfer (Retrieve the processing history of operations such as writing)
 
bool FwVersion (ACQUA::IPAddress, std::string &)
 Get DFirmware version from target.
 
bool Alternate (ACQUA::IPAddress, std::vector< AlternateInfo > &)
 Get Alternate firmware information from target (rootfs applications and etc)
 
bool FwURL (ACQUA::IPAddress, std::string &)
 Get firmware download URL for update target.
 
bool Reboot (ACQUA::IPAddress, bool, std::uint16_t=1)
 Reboot target.
 
bool Infomation (ACQUA::IPAddress, std::uint16_t, std::string &)
 Get target configure information string.
 
bool Infomation (ACQUA::IPAddress, std::uint16_t, ACQUA::Buffer &)
 Get target configure information buffer.
 
bool Infomation (ACQUA::IPAddress, std::uint16_t, std::vector< std::string > &)
 Get target configure information list of string.
 
bool TargetSetting (ACQUA::IPAddress add, std::list< TargetSettingInfo > &info, bool defo=false)
 Get target configure setting.
 
bool setTargetSetting (ACQUA::IPAddress add, uint16_t i, const std::string &str)
 
bool setTargetSetting (ACQUA::IPAddress add, uint16_t i, uint16_t val)
 
bool setTargetSetting (ACQUA::IPAddress add, uint16_t i, const std::string &str, uint16_t val)
 
bool TargetSettingFinale (ACQUA::IPAddress add, bool f)
 
bool SinkSetting (ACQUA::IPAddress add, std::list< TargetSettingInfo > &info, bool defo=false)
 Get sink configure setting.
 
bool setSinkSetting (ACQUA::IPAddress add, uint16_t i, const std::string &str)
 
bool setSinkSetting (ACQUA::IPAddress add, uint16_t i, uint16_t val)
 
bool setSinkSetting (ACQUA::IPAddress add, uint16_t i, const std::string &str, uint16_t val)
 
bool SinkSettingFinale (ACQUA::IPAddress add, bool f)
 
bool measSendMTU (const ACQUA::IPAddress &, std::uint32_t &)
 MTU measurement.
 
bool measSendMTU (const ACQUA::IPAddress &, std::uint32_t &, std::uint32_t &)
 MTU measurement with interface MTU.
 
- Public Member Functions inherited from DIRETTA::Connection
 Connection ()
 create connection
 
 Connection (ACQUA::EthernetSocket &)
 create connection with socket
 
 ~Connection ()
 destroy connection
 
void setAdditionalAddress (const std::list< ACQUA::IPAddress > &add)
 Configure the address of a Target that cannot respond to multicast.
 

Static Public Member Functions

static bool is_multiport (const PortResalts &resalts, const ACQUA::IPAddress &)
 has multiple sinks
 
static void SortStatus (ACQUA::IPAddress, uint16_t P, bool, const StatusResalts &, StatusSort &)
 Sort status information.
 

Public Attributes

const Setting Information
 Get setting information structure.
 

Additional Inherited Members

- Protected Member Functions inherited from DIRETTA::Connection
bool open (ACQUA::IPAddress &)
 open socket
 
void close ()
 close socket
 
bool sendAck (const ConnectionBuffer &, const ACQUA::IPAddress &, MessageID, ConnectionBuffer &, ACQUA::Clock=ACQUA::Clock::MilliSeconds(30))
 Send message and wait for response.
 
bool send (const ConnectionBuffer &data)
 Send message.
 
bool receive (ConnectionBuffer &data, ACQUA::IPAddress &add, ACQUA::Clock wtt=ACQUA::Clock())
 Receive message.
 
bool member (const ACQUA::IPAddress &addme)
 Begin receiving multicast data (join members)
 
bool sendMulti (const ConnectionBuffer &msg, MessageID respMsg, std::map< ACQUA::IPAddress, std::unique_ptr< ConnectionBuffer > > &resalt, bool)
 Send message to multiple message and wait for response.
 
std::list< IfInfogetIfList (bool, bool discash=false)
 Get network interfaces.
 
bool getIfMTU (std::uint32_t, std::uint32_t &)
 Get MTU of interface.
 
 operator ACQUA::EthernetSocket * ()
 Get socket object pointer.
 
- Static Protected Member Functions inherited from DIRETTA::Connection
static void dumpfile (ACQUA::BufferCS_const, const std::string &=std::string())
 Dump packet data during debugging.
 
- Protected Attributes inherited from DIRETTA::Connection
std::list< IfInfoIfList
 
bool IfListLoop
 
ACQUA::EthernetSocketudpCn
 
const bool udpSelf
 

Detailed Description

Diretta detects the target.

Constructor & Destructor Documentation

◆ Find() [1/2]

DIRETTA::Find::Find ( const Setting & )

Constructor.

Parameters
settingControl setting structure

◆ Find() [2/2]

DIRETTA::Find::Find ( const Setting & ,
ACQUA::EthernetSocket &  )

Constructor.

Parameters
settingControl setting structure
Whenusing network processing other than Socke

Member Function Documentation

◆ findOutput() [1/2]

bool DIRETTA::Find::findOutput ( const TargetResalts & tl,
PortResalts & resalts )
inline

find output sink. Do not perform target detection.

Parameters
tltarget list to search
resaltsfound sink resalt.
Returns
socket success or failure

◆ findOutput() [2/2]

bool DIRETTA::Find::findOutput ( PortResalts & resalts)
inline

find output sink.

Parameters
resaltsfound sink resalt.
Returns
socket success or failure

◆ findTarget() [1/3]

bool DIRETTA::Find::findTarget ( const TargetResalts & ,
PortResalts & resalts,
MODE  )

find target port. Do not perform target detection.

Parameters
tltarget list to search
resaltsfound port resalt.
mosearch mode
Returns
socket success or failure

◆ findTarget() [2/3]

bool DIRETTA::Find::findTarget ( PortResalts & resalts,
MODE mo )
inline

find target port

Parameters
resaltsfound port resalt.
mosearch mode
Returns
socket success or failure

◆ findTarget() [3/3]

bool DIRETTA::Find::findTarget ( StatusResalts & resalts)
inline

find status

Parameters
resaltsfound status resalt.

◆ getOutput()

bool DIRETTA::Find::getOutput ( const ACQUA::IPAddress & targetAdd,
std::uint16_t tO,
ACQUA::IPAddress & resaltAdd,
TargetConnectInfo & resaltInfo )

find output target.

Parameters
targetAddtarget address not sink address
targetoutput no;
resaltsink address (If not found, it becomes empty)
resaltsink infomation
Returns
socket success or failure

◆ measSendMTU() [1/2]

bool DIRETTA::Find::measSendMTU ( const ACQUA::IPAddress & ,
std::uint32_t &  )

MTU measurement.

Parameters
targetaddress
resultmeasured MTU

◆ measSendMTU() [2/2]

bool DIRETTA::Find::measSendMTU ( const ACQUA::IPAddress & ,
std::uint32_t & ,
std::uint32_t &  )

MTU measurement with interface MTU.

Parameters
targetaddress
resultmeasured MTU
interfaceMTU

◆ Reboot()

bool DIRETTA::Find::Reboot ( ACQUA::IPAddress ,
bool ,
std::uint16_t = 1 )

Reboot target.

Parameters
addtarget address
Requestreboot (false is not reboot)
rebootcod 1 is normal reboot

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