[gnutls-help] [gnutls-devel] higher level session API?
    Tim Ruehsen 
    tim.ruehsen at gmx.de
       
    Mon Jan 28 11:02:22 CET 2013
    
    
  
Am Saturday 26 January 2013 schrieb Nikos Mavrogiannopoulos:
> > If it helps, look at my getline() implementation for file descriptors.
> > The internal variables are saved at the end of buf, but you won't need
> > this ugly trick since you have a session variable.
> 
> I've implemented it using gnulib's getline which in turn was based on
> libc's one :)
just BTW:
When I needed glib's getline() for a socket descriptor (using freopen to use a 
stream), I realized that I did not work (i guess, the stream has to be 
seekable). So I wrote my own function, directly capable of using file/socket 
descriptors. I did not look at gnulib's code, since I needed my own copyright 
on the code. Afterwards I realized my function being (AFAIK) ~30% faster that 
glib's - I guess it is the missing FILE handle overhead... 
Regards, Tim
    
    
More information about the Gnutls-help
mailing list