title: Boost::asio in Rcpp : is it possible?
body: <p>I am new in Rcpp and I would like to know if there is a possibility to move inside Rcpp the following code :</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "SimpleSerial.h"
  using namespace std;`
  using namespace boost;
  int main(int argc, char* argv[])
  {
  try {
  
      SimpleSerial serial("COM5",9600);
  
      serial.writeString("Hello world\r\n");
  
      cout&lt;&lt;"Received : "&lt;&lt;serial.readLine()&lt;&lt;" : end"&lt;&lt;endl;
  
  } catch(boost::system::system_error&amp; e)
  {
      cout&lt;&lt;"Error: "&lt;&lt;e.what()&lt;&lt;endl;
      return 1;
  }
  </code></pre>
  
  <p>The code comes from the examples of boost and is succesfully compiled under MinGW64 with the commands:</p>
  
  <pre><code>g++ -O2 -c main.cpp -D_WIN32_WINNT=0x0501
  g++ -o simple.exe main.o -s -lwsock32 -lws2_32 -lboost_system
  </code></pre>
  
  <p>My purpose is to make a function that send and receive the two strings to the COM port inside R. Any suggestions where to start in Rcpp ? Thanks.</p>