[gnutls-dev] c++ interface to gnutls.h

Nikos Mavrogiannopoulos nmav at gnutls.org
Tue Jun 6 23:37:45 CEST 2006

On Thu 01 Jun 2006 23:22, you wrote:
> Hi Nikos,
> I have thought a little about decomposing the session class. From the
> code I have looked at, all the state information is supposed to be
> stored inside the gnutls_session_t. so it would be quite easy to
> build a derived class that just acts as a wrapper that adds some more
> functions.

Hello Rupert,
 I was quite busy and couldn't check it until today. 

I like the splitting to classes, but why not use a final class that will
inherit from all the above small classes? It looks difficult to
properly cast the class for each function.

Also you seem to prefer functions instead of member functions.
Why is that? I think it's cleaner to see send as
a property of the session object rather than a generic operation.

I've currently added the C++ interface to the unstable branch. I'll 
update it again when i find some time...


More information about the Gnutls-devel mailing list