#include <online-feat-input.h>
Definition at line 160 of file online-feat-input.h.
 
◆ OnlineUdpInput()
◆ client_addr()
  
  
      
        
          | const sockaddr_in& client_addr  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ Compute()
Implements OnlineFeatInputItf.
Definition at line 171 of file online-feat-input.cc.
References OnlineUdpInput::client_addr_, KALDI_WARN, Matrix< Real >::Read(), Matrix< Real >::Resize(), and OnlineUdpInput::sock_desc_.
  174   ssize_t nrecv = recvfrom(
sock_desc_, buf, 
sizeof(buf), 0,
   182   std::stringstream ss(std::stringstream::in | std::stringstream::out);
   183   ss.write(buf, nrecv);
   184   output->
Read(ss, 
true);
 void Read(std::istream &in, bool binary, bool add=false)
read from stream. 
 
void Resize(const MatrixIndexT r, const MatrixIndexT c, MatrixResizeType resize_type=kSetZero, MatrixStrideType stride_type=kDefaultStride)
Sets matrix to a specified size (zero is OK as long as both r and c are zero). 
 
 
 
 
◆ descriptor()
  
  
      
        
          | const int32 descriptor  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ Dim()
  
  
      
        
          | virtual int32 Dim  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ client_addr_
◆ feature_dim_
◆ server_addr_
◆ sock_desc_
The documentation for this class was generated from the following files: