Re: [go-nuts] cgo libnice binding will stuck

2019-05-22 Thread xiang liu
Thanks,  this code block will stuck on macos,   `C.nice_agent_gather_
candidates`  just does not return.
Works fun on linux.
Maybe there is a bug when use cgo with glib or libnice or gnutls on macos.

Tyler Compton  于2019年5月23日周四 上午6:15写道:

> Beyond just mailing list etiquette, you'll probably get better responses
> if you provide your code in plain text. I think that some of the more
> responsive people in golang-nuts use text-only email viewers, though that's
> only a guess!
>
> I took the liberty of transcribing this one, free of charge :)
>
> func (a *Agent) GatherCandidates() error {
> a.mtx.Lock()
> defer a.mtx.Unlock()
> fmt.Println("GatherCandidates1")
> rv := int(C.nice_agent_gather_candidates(a.agent, C.guint(a.stream)))
> if rv == 0 {
> return errors.New("failed to gather candidates")
> }
> fmt.Println("GatherCandidates2")
> return nil
> }
>
> On Wed, May 22, 2019 at 3:09 AM xiang liu  wrote:
>
>> Sorry about this.
>>
>> 在 2019年5月22日星期三 UTC+8下午4:43:27,Jan Mercl写道:
>>>
>>> On Wed, May 22, 2019 at 10:05 AM xiang liu  wrote:
>>>
>>> Please use only plain text for source code in emails. Where available,
>>> a link to play.golang.org is also good. Thanks.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to golang-nuts+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/golang-nuts/1379f6a2-e700-43ed-8cf6-c633ea567d1b%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAHfoA_%3D0dV25zRYN3R%2BzvQQSftLRVHE4n_Zk6eD_LKF7zne4WA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] cgo libnice binding will stuck

2019-05-22 Thread Tyler Compton
Beyond just mailing list etiquette, you'll probably get better responses if
you provide your code in plain text. I think that some of the more
responsive people in golang-nuts use text-only email viewers, though that's
only a guess!

I took the liberty of transcribing this one, free of charge :)

func (a *Agent) GatherCandidates() error {
a.mtx.Lock()
defer a.mtx.Unlock()
fmt.Println("GatherCandidates1")
rv := int(C.nice_agent_gather_candidates(a.agent, C.guint(a.stream)))
if rv == 0 {
return errors.New("failed to gather candidates")
}
fmt.Println("GatherCandidates2")
return nil
}

On Wed, May 22, 2019 at 3:09 AM xiang liu  wrote:

> Sorry about this.
>
> 在 2019年5月22日星期三 UTC+8下午4:43:27,Jan Mercl写道:
>>
>> On Wed, May 22, 2019 at 10:05 AM xiang liu  wrote:
>>
>> Please use only plain text for source code in emails. Where available,
>> a link to play.golang.org is also good. Thanks.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/1379f6a2-e700-43ed-8cf6-c633ea567d1b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA%3DXfu2_63yEwDu1-4aWi0WBUW82xL9JqMwf3726DGkwwHQH0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] cgo libnice binding will stuck

2019-05-22 Thread xiang liu
Sorry about this. 

在 2019年5月22日星期三 UTC+8下午4:43:27,Jan Mercl写道:
>
> On Wed, May 22, 2019 at 10:05 AM xiang liu  > wrote: 
>
> Please use only plain text for source code in emails. Where available, 
> a link to play.golang.org is also good. Thanks. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/1379f6a2-e700-43ed-8cf6-c633ea567d1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] cgo libnice binding will stuck

2019-05-22 Thread Jan Mercl
On Wed, May 22, 2019 at 10:05 AM xiang liu  wrote:

Please use only plain text for source code in emails. Where available,
a link to play.golang.org is also good. Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-UdETesdorqM0jMJFHbuTdXPGD5SdLPFqhbhL9%2BKW7L5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] cgo libnice binding will stuck

2019-05-22 Thread xiang liu
Hi:

I try to use cgo binding libnice to do p2p transport,  It  seems the cgo 
binding will stuck

[image: WechatIMG322.png] 











that works well on linux. anyone can give a hint on this?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/66f4faa9-fdfe-4672-8383-b36d5b6e3dc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.