boost::iostreams - access object 'below' the stream
Hello, Little question: I'm toying around to replace my socket_stream class with a boost::iostreams::stream class to implement a more generic approach... now, I use the socket file descriptor/handle as a unique identifier in my application, and so far this could easily be retrieved; however, when the boost::iostreams::stream "layer" is on top of my socket class, this is pretty much inaccessable. What is the most common approach to handle this problem ? I really don't want to resort to some kind of tuple which describes the stream and the handle, but at the moment, a construction like that is the only thing my mind can come up with... any suggestions ? Thanks in advance for any reactions. Regards, Leon Mergen
Leon Mergen escreveu:
What is the most common approach to handle this problem ? Expose a handle() or descriptor() or something similar from your socket Device. You can access your device's member functions using the arrow operator on the stream.
-- Pedro Lamarão Desenvolvimento Intersix Technologies S.A. SP: (55 11 3803-9300) RJ: (55 21 3852-3240) www.intersix.com.br Your Security is our Business
participants (2)
-
Leon Mergen
-
Pedro Lamarão