Class
IbisClient
since: 0.1
Description [src]
final class Ibis.Client : GObject.Object
{
/* No available fields */
}
A representation of an IRCv3 client.
The client has a bit of functionality built-in but there are some cases
where you may have to let the default handler run if you are listening to
the generic IbisClient::message
signal.
The client uses the IBIS_RPL_WELCOME
message to update
IbisClient:active-nick
. This means your handler will need to return
FALSE
to let the default handler implement this feature.
Likewise, the client also uses IBIS_MSG_NICK
to update the
IbisClient:active-nick
property if the nick name of the user has been
changed via a bouncer or just via a NICK
command. So again, your handler
will need to return FALSE
to let the default handler implement this feature.
The client also implements client pings which will be sent if no data is
received from the server for IbisClient:client-ping-timeout
seconds.
If no response is received before that number of seconds again, then the
client will be disconnected with an error.
Available since: 0.1
Instance methods
ibis_client_get_alt_nick
Gets the alternative nick to use in the event that IbisClient:nick
is
already in use.
since: 0.1
ibis_client_get_realname
Gets the realname that is being used when sending the USER
command.
since: 0.1
ibis_client_get_source_prefix
Gets the Channel Membership Prefix from source
according to the prefixes
that the server told us in IBIS_RPL_ISUPPORT
.
since: 0.8
ibis_client_get_username
Gets the username that is being used when sending the USER
command.
since: 0.1
ibis_client_normalize
Normalizes input
depending on the IBIS_FEATURE_CASEMAPPING
feature.
since: 0.7
ibis_client_set_client_ping_timeout
Sets the number of seconds for the client ping timeout.
since: 0.14
ibis_client_strip_source_prefix
Strips the Channel Membership Prefix from source
according to the prefixes
that the server told us in IBIS_RPL_ISUPPORT
.
since: 0.8
Properties
Ibis.Client:network
The advertised name of the network from the server sending the
IBIS_RPL_ISUPPORT
message.
since: 0.4
Signals
Ibis.Client::writing-message
Emitted just before the client has queued message
to be written to the
output stream to allow dropping or modification of messages.
since: 0.4
Ibis.Client::wrote-message
Emitted when the client has successfully written message
to output stream.
since: 0.4
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.