Re: [Evolution-hackers] PIM server synchronization and Evolution online/offline state



Might want to repost your full message to the list.  I assume you didn't
mean to reply to me privately?


On Tue, 2012-04-03 at 16:05 +0200, Christian Hilberg wrote:
> Well okay, that's a little more than the current EBackend "online" property,
> since it can tell me whether a certain host can be reached. But, AFAIK, it
> can not tell me whether a given *service* on that host can be reached (that
> is, can be connected to), right?

g_network_monitor_can_reach() takes a GSocketConnectable -- which is
just an interface that's implemented by several concrete classes like
GNetworkAddress (based on host name and port number) and GNetworkService
(based on SRV records), so I assume service will be taken into account
when possible in determining the boolean result that would feed into
EBackend's "online" state.

Probably it would make sense to add an EBackend method which returns a
GSocketConnectable ("get_socket_connectable"?) so backends can specify
to use SRV records when applicable.  Not sure if this would be useful
for Kolab servers or not.

Matt



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]