Logo Search packages:      
Sourcecode: ardour version File versions  Download package

int ImageFrameSocketHandler::read_message ( std::string &  msg  )  [private]

Reads a message from the Socket

Parameters:
msg a string to populate with the received message
Returns:
the return value from the socket call

Definition at line 2293 of file imageframe_socket_handler.cc.

References theArdourToCompositorSocket.

Referenced by handle_insert_imageframe_view().

{
      char buf[ardourvis::MAX_MSG_SIZE + 1] ;
      memset(buf, 0, (ardourvis::MAX_MSG_SIZE + 1)) ;
      
      msg = "" ;
      int retcode = ::recv(theArdourToCompositorSocket, buf, ardourvis::MAX_MSG_SIZE, 0) ;
      
      msg = buf ;
      //std::cout << "Received Message [" << msg << "]\n" ;
      
      return(retcode) ;
}


Generated by  Doxygen 1.6.0   Back to index