Been searching the google and SO, but i seem to be unable to find the solution.
boost::shared_ptr<boost::asio::serial_port> port (new boost::asio::serial_port(*ioService, "/dev/ttyS1"));
This way the port is created and opened right away, and thats not what i want, i need to create it now, but set all the options and open it later. How can i do that?
I read in the manual and basic_serial_port
seems to have a constructor that creates a port by just using the ioService, however, im not sure how to go about it and use it for my application.