#include <KM3NeT_Acoustic_Link.h>
 | 
| void  | Read_completed (const boost::system::error_code &error, std::size_t transferred) | 
|   | 
- Author
 - fsimeone 
 
Definition at line 25 of file KM3NeT_Acoustic_Link.h.
 
◆ KM3NeT_Acoustic_Link()
      
        
          | KM3NeT_Acoustic_Link::KM3NeT_Acoustic_Link  | 
          ( | 
          boost::asio::io_service &  | 
          io_service,  | 
        
        
           | 
           | 
          std::map< std::size_t, pDOM > &  | 
          doms,  | 
        
        
           | 
           | 
          uint32_t  | 
          buffer_size = STD_DIM_BUFFER  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Author
 - fsimeone 
 
Definition at line 17 of file KM3NeT_Acoustic_Link.cc.
#define AUDIO_PACKET_FIXED_SIZE
 
#define DEBUG_MSG(str, lev)
 
boost::asio::io_service::strand strand_
 
static const size_t buffer_size
 
 
 
 
◆ ~KM3NeT_Acoustic_Link()
  
  
      
        
          | KM3NeT_Acoustic_Link::~KM3NeT_Acoustic_Link  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ Socket()
  
  
      
        
          | boost::asio::ip::tcp::socket& KM3NeT_Acoustic_Link::Socket  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ Start_reading()
      
        
          | void KM3NeT_Acoustic_Link::Start_reading  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 49 of file KM3NeT_Acoustic_Link.cc.
void Read_completed(const boost::system::error_code &error, std::size_t transferred)
 
 
 
 
◆ Disconnect()
      
        
          | void KM3NeT_Acoustic_Link::Disconnect  | 
          ( | 
          bool  | 
          Soft = true | ) | 
           | 
        
      
 
Definition at line 38 of file KM3NeT_Acoustic_Link.cc.
   43                 boost::system::error_code l_ignore;
 
   44                 socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_both, l_ignore);
 
 
 
 
◆ Read_completed()
  
  
      
        
          | void KM3NeT_Acoustic_Link::Read_completed  | 
          ( | 
          const boost::system::error_code &  | 
          error,  | 
         
        
           | 
           | 
          std::size_t  | 
          transferred  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
Definition at line 63 of file KM3NeT_Acoustic_Link.cc.
   67         DEBUG_MSG(
"Read completed " << transferred << 
" bytes ",1);
 
   78                 if (i!=
dom_map_.end())  i->second->Check_time_async(*l_pheader);
 
   85                         uint8_t* tmp_buffer=(uint8_t*)malloc(transferred);
 
   86             memcpy(tmp_buffer,
buffer_,transferred);
 
   87                         i->second->Handle_samples_async(tmp_buffer,transferred);
 
   96           DEBUG_MSG(
"Read completed err " << error <<
" "<< transferred << 
" bytes",3);
 
std::map< std::size_t, pDOM > & dom_map_
 
 
 
 
◆ DEBUG_LEVEL
  
  
      
        
          | const int KM3NeT_Acoustic_Link::DEBUG_LEVEL =3 | 
         
       
   | 
  
static   | 
  
 
 
◆ strand_
  
  
      
        
          | boost::asio::io_service::strand KM3NeT_Acoustic_Link::strand_ | 
         
       
   | 
  
private   | 
  
 
 
◆ socket_
  
  
      
        
          | boost::asio::ip::tcp::socket KM3NeT_Acoustic_Link::socket_ | 
         
       
   | 
  
private   | 
  
 
 
◆ buffer_
  
  
      
        
          | uint8_t* KM3NeT_Acoustic_Link::buffer_ | 
         
       
   | 
  
private   | 
  
 
 
◆ buffer_size_
  
  
      
        
          | uint32_t KM3NeT_Acoustic_Link::buffer_size_ | 
         
       
   | 
  
private   | 
  
 
 
◆ data_size_
  
  
      
        
          | uint32_t KM3NeT_Acoustic_Link::data_size_ | 
         
       
   | 
  
private   | 
  
 
 
◆ dom_map_
◆ dom_id_
  
  
      
        
          | uint32_t KM3NeT_Acoustic_Link::dom_id_ | 
         
       
   | 
  
private   | 
  
 
 
◆ header_received_
  
  
      
        
          | bool KM3NeT_Acoustic_Link::header_received_ | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: