glibmm
2.42.0
|
An event source that can monitor a Gio::Socket. More...
#include <giomm/socketsource.h>
Public Types | |
typedef Gio::SocketSource | CppObjectType |
![]() | |
typedef Glib::IOSource | CppObjectType |
![]() | |
typedef Glib::Source | CppObjectType |
typedef GSource | BaseObjectType |
Static Public Member Functions | |
static Glib::RefPtr< SocketSource > | create (const Glib::RefPtr< Socket >& socket, Glib::IOCondition condition, const Glib::RefPtr< Cancellable >& cancellable=Glib::RefPtr< Cancellable >()) |
![]() | |
static Glib::RefPtr< IOSource > | create (int fd, IOCondition condition) |
static Glib::RefPtr< IOSource > | create (const Glib::RefPtr< IOChannel >& channel, IOCondition condition) |
![]() | |
static Glib::RefPtr< Source > | create () |
Protected Member Functions | |
SocketSource (const Glib::RefPtr< Socket >& socket, Glib::IOCondition condition, const Glib::RefPtr< Cancellable >& cancellable) | |
virtual | ~SocketSource () |
![]() | |
IOSource (int fd, IOCondition condition) | |
IOSource (const Glib::RefPtr< IOChannel >& channel, IOCondition condition) | |
IOSource (GSource* cast_item, GSourceFunc callback_func) | |
Wrap an existing GSource object and install the given callback function. More... | |
virtual | ~IOSource () |
virtual bool | prepare (int& timeout) |
virtual bool | check () |
virtual bool | dispatch (sigc::slot_base* slot) |
![]() | |
Source () | |
Construct an object that uses the virtual functions prepare(), check() and dispatch(). More... | |
Source (GSource* cast_item, GSourceFunc callback_func) | |
Wrap an existing GSource object and install the given callback function. More... | |
virtual | ~Source () |
sigc::connection | connect_generic (const sigc::slot_base& slot) |
void | add_poll (PollFD& poll_fd) |
Adds a file descriptor to the set of file descriptors polled for this source. More... | |
void | remove_poll (PollFD& poll_fd) |
Removes a file descriptor from the set of file descriptors polled for this source. More... | |
void | get_current_time (Glib::TimeVal& current_time) |
Gets the "current time" to be used when checking this source. More... | |
gint64 | get_time () const |
Gets the time to be used when checking this source. More... | |
Additional Inherited Members | |
![]() | |
sigc::connection | connect (const sigc::slot< bool, IOCondition >& slot) |
![]() | |
unsigned int | attach (const Glib::RefPtr< MainContext >& context) |
Adds a Source to a context so that it will be executed within that context. More... | |
unsigned int | attach () |
Adds a Source to a context so that it will be executed within that context. More... | |
void | destroy () |
Removes a source from its MainContext, if any, and marks it as destroyed. More... | |
void | set_priority (int priority) |
Sets the priority of a source. More... | |
int | get_priority () const |
Gets the priority of a source. More... | |
void | set_can_recurse (bool can_recurse) |
Sets whether a source can be called recursively. More... | |
bool | get_can_recurse () const |
Checks whether a source is allowed to be called recursively. More... | |
unsigned int | get_id () const |
Returns the numeric ID for a particular source. More... | |
Glib::RefPtr< MainContext > | get_context () |
Gets the MainContext with which the source is associated. More... | |
GSource* | gobj () |
const GSource* | gobj () const |
GSource* | gobj_copy () const |
void | reference () const |
void | unreference () const |
An event source that can monitor a Gio::Socket.
|
protected |
|
protectedvirtual |
|
static |