Re: void or bool (GIOmm new definitions)



2010/2/5 Glus Xof <gtglus gmail com>:
> I started to look over these new definitions:
>
> http://datsystems.dnsalias.com/doc/glibmm-2.4/docs/reference/html/classGio_1_1Socket.html
>
> And I'd like only to ask you if those methods (like bind, listen,
> connect...) will really return void...
> or bool instead.

They return void, and on error an exception (Gio::Error) is thrown.
The documentation for the retun value is a leftover from the C API.

Regards, Krzysztof


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