#include <ioconnection_wrapper.h>

An io connection wrapper wraps an underlying connection. There's the default implementation IoConnectionWrapperClass which forwards all calls to the underlying connection.
Public Member Functions | |
| MAXON_METHOD Result< void > | Init (const Url &url, const IoConnectionRef &wrappedConnection, Bool readOnly, Bool forwardStreams) |
| MAXON_METHOD const IoConnectionRef & | GetWrappedConnection () const |
Private Member Functions | |
| MAXON_INTERFACE (IoConnectionWrapperInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.ioconnectionwrapper", MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel")) | |
|
private |
| MAXON_METHOD Result<void> Init | ( | const Url & | url, |
| const IoConnectionRef & | wrappedConnection, | ||
| Bool | readOnly, | ||
| Bool | forwardStreams | ||
| ) |
Initializes this connection wrapper.
| [in] | url | The Url for the connection. |
| [in] | wrappedConnection | The underlying connection. |
| [in] | readOnly | True if this connection shall be read-only, i.e., all methods which would write to the underlying connection shall fail with an error. |
| [in] | forwardStreams | True if stream-related methods shall be forwarded to the underlying connection. If false, you have to implement the necessary methods yourself. |
| MAXON_METHOD const IoConnectionRef& GetWrappedConnection | ( | ) | const |
Returns the underlying connection which has been set by Init().