help-gnutls
[Top][All Lists]
Advanced

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

Re: [Help-gnutls] Can you assign a gnutls_session_t from one variable to


From: Nikos Mavrogiannopoulos
Subject: Re: [Help-gnutls] Can you assign a gnutls_session_t from one variable to another?
Date: Sun, 17 Aug 2008 01:32:44 +0300
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

Brian Lavender wrote:
> Dumb question. Can you assign a gnutls_session_t from one variable to
> another?
> 
> Say I have the following. What is the implication?
> 
> gnutls_session_t a;
> gnutls_session_t b;
> 
> // create socket accept sock_fd
> 
> a = initialize_tls_session ();
> gnutls_transport_set_ptr (a, (gnutls_transport_ptr_t) sock_fd );
> 
> b = a;

It is just a pointer so you can do it.




reply via email to

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