Hello,<br><br>The library I am attempting to extend Python to contains a class which inherits from boost::asio::ip::tcp::socket.<br><br>class tcp_client_socket : public boost::asio::ip::tcp::socket {<br>// class members and functions go here...<br>
};<br><br>My question is whether or not it is a good idea to wrap this. My naive approach would be to something like:<br><br>BOOST_PYTHON_MODULE(tcp_client_socket_ext)<br>{<br> using namespace boost::python;<br> class_<tcp_client_socket, bases<boost::asio::ip::tcp::socket> >("tcp_client_socket");<br>
}<br><br>I did an initial compile and received many compiler errors. If anyone has done this before, what is the correct way to wrap such an object.<br><br>Any help is greatly appreciated. <br><br>Regards,<br><br>-Jeremy<br>