|
| PollableOutputStream (PollableOutputStream &&src) noexcept |
|
PollableOutputStream & | operator= (PollableOutputStream &&src) noexcept |
|
| ~PollableOutputStream () noexcept override |
|
GPollableOutputStream * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GPollableOutputStream * | gobj () const |
| Provides access to the underlying C GObject.
|
|
bool | can_poll () const |
| Checks if stream is actually pollable.
|
|
bool | is_writable () const |
| Checks if stream can be written.
|
|
gssize | write_nonblocking (const void *buffer, gsize count, const Glib::RefPtr< Cancellable > &cancellable) |
| Attempts to write up to count bytes from buffer to stream, as with g_output_stream_write().
|
|
gssize | write_nonblocking (const void *buffer, gsize count) |
| A write_nonblocking() convenience overload.
|
|
| Interface () |
| A Default constructor.
|
|
| Interface (Interface &&src) noexcept |
|
Interface & | operator= (Interface &&src) noexcept |
|
| Interface (const Glib::Interface_Class &interface_class) |
| Called by constructors of derived classes.
|
|
| Interface (GObject *castitem) |
| Called by constructors of derived classes.
|
|
| ~Interface () noexcept override |
|
| Interface (const Interface &)=delete |
|
Interface & | operator= (const Interface &)=delete |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring & property_name, const Glib::ValueBase & value) |
| You probably want to use a specific property_*() accessor method instead.
|
|
void | get_property_value (const Glib::ustring & property_name, Glib::ValueBase & value) const |
| You probably want to use a specific property_*() accessor method instead.
|
|
template<class PropertyType > |
void | set_property (const Glib::ustring & property_name, const PropertyType & value) |
| You probably want to use a specific property_*() accessor method instead.
|
|
template<class PropertyType > |
void | get_property (const Glib::ustring & property_name, PropertyType & value) const |
| You probably want to use a specific property_*() accessor method instead.
|
|
template<class PropertyType > |
PropertyType | get_property (const Glib::ustring & property_name) const |
| You probably want to use a specific property_*() accessor method instead.
|
|
sigc::connection | connect_property_changed (const Glib::ustring & property_name, const sigc::slot< void()> &slot) |
| You can use the signal_changed() signal of the property proxy instead.
|
|
sigc::connection | connect_property_changed (const Glib::ustring & property_name, sigc::slot< void()> &&slot) |
| You can use the signal_changed() signal of the property proxy instead.
|
|
void | freeze_notify () |
| Increases the freeze count on object.
|
|
void | thaw_notify () |
| Reverts the effect of a previous call to freeze_notify().
|
|
virtual void | reference () const |
| Increment the reference count for this object.
|
|
virtual void | unreference () const |
| Decrement the reference count for this object.
|
|
GObject * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GObject * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GObject * | gobj_copy () const |
| Give a ref-ed copy to someone. Use for direct struct access.
|
|
PollableOutputStream - Interface for pollable output streams.
PollableOutputStream is implemented by OutputStreams that can be polled for readiness to write. This can be used when interfacing with a non-GIO API that expects UNIX-file-descriptor-style asynchronous I/O rather than GIO-style.
- Since glibmm 2.34:
Attempts to write up to count bytes from buffer to stream, as with g_output_stream_write().
If stream is not currently writable, this will immediately return Gio::Error::WOULD_BLOCK, and you can use g_pollable_output_stream_create_source() to create a Source that will be triggered when stream is writable.
Note that since this method never blocks, you cannot actually use cancellable to cancel it. However, it will return an error if cancellable has already been cancelled when you call, which may happen if you call this method after a source triggers due to having been cancelled.
Also note that if Gio::Error::WOULD_BLOCK is returned some underlying transports like D/TLS require that you re-send the same buffer and count in the next write call.
The behaviour of this method is undefined if g_pollable_output_stream_can_poll() returns false
for stream.
- Parameters
-
buffer | A buffer to write data from. |
count | The number of bytes you want to write. |
cancellable | A Cancellable, or nullptr . |
- Returns
- The number of bytes written, or -1 on error (including Gio::Error::WOULD_BLOCK).
- Exceptions
-