for this purpose we have conn_wait with timeout...
or I miss something?

Thanks,
Alexander Malysh

Am 05.08.2010 um 02:27 schrieb Rene Kluwen:

> Because if I do what you say, then receiving something from bearerbox or any 
> other box for that matter will block until it receives data. Which may never 
> come.
> That’s why I want to raise an error receiving data (by means of the shutdown 
> function) and after that I can finish the thread.
>  
> Or does gwthread_wakeup(…) do the same?
>  
> == Rene
>  
>  
> From: Alexander Malysh [mailto:[email protected]] On Behalf Of 
> Alexander Malysh
> Sent: Wednesday, 04 August, 2010 21:31
> To: Rene Kluwen
> Cc: 'Kannel Devel'
> Subject: Re: [PATCH] conn.c
>  
> HI Rene,
>  
> I don't get it, why you need this function? closing/shutdown of connection is 
> not a inter-thread communication.
>  
> why not just?
>  
> stop = 1
> gwthread_wakeup(...)
>  
> Thanks,
> Alexander Malysh
>  
> Am 02.08.2010 um 16:42 schrieb Rene Kluwen:
> 
> 
> Hereby I want to propose a patch in gwlib to add a function that would make 
> life a lot easier in smppbox.
>  
> == Rene
>  
> <conn_shutdown2.patch>
>  

Reply via email to