[asio-users] Stream's lowest_layer() public member function
Brought to you by:
chris_kohlhoff
From: Alterman, E. <Eugene.Alterman@Staples.com> - 2005-12-09 21:08:13
|
Exposing a lower layer via a public method is IMHO a flaw in the design that violates layering. My guess is that it is only used for connection establishment (connect/accept). After a connection has been established a lower layer is not supposed to be accessed directly, and providing unrestricted access to it is potentially unsafe. |