help-gnutls
[Top][All Lists]
Advanced

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

Re: [Help-gnutls] push/pull functions


From: Nikos Mavrogiannopoulos
Subject: Re: [Help-gnutls] push/pull functions
Date: Wed, 26 Sep 2007 13:11:26 +0300
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)

On Wednesday 26 September 2007, Robin Redeker wrote:

> > > I have a (maybe not so?) simple question:
> > > Can I call gnutls_record_recv/gnutls_record_send safely while I'm in a
> > > push/pull callback?
> > As long as you don't use the same session, it should be safe.
> > > The reason I'm asking is that I want to make bindings for GNU
> > > Smalltalk, which has support for non-preemtive multiple threads of
> > > execution.
> > gnutls can be used with multiple threads, as long as the gcrypt callbacks
> > are set and the same session is not accessed by multiple threads.
> Well, usually you have a writer and a reader thread per session. Will
> those interfere?  Or does it mean that I'll have to use non-blocking I/O
> semantics to ensure that there are not two threads doing a recv and send
> at the same time?

It should work. As far as I remember it is even possible to have recv and send 
from different processes (using fork).


regards,
Nikos




reply via email to

[Prev in Thread] Current Thread [Next in Thread]