[go-nuts] cgo with custom toolchain

2018-12-29 Thread eran . yasso
Hi, Any example on how I can build cgo code using custom toolchain? 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

[go-nuts] *Conn.Write() SSL doesn't detect closed socket/connection

2018-12-24 Thread eran . yasso
Hi, I am experiencing an issue in *Conn.Write() which is not detecting that the connection was closed in the server. Below you can find demo SSL server and client which hosted on same go project. The problem is that the following line doesn't detect closed socket/connection:

Re: [go-nuts] Returning pointer to struct from cgo to C cause panic: runtime error: cgo result has Go pointer

2018-12-19 Thread eran . yasso
solved it: //export Eb_TcpSecureStreamCreateListener func Eb_TcpSecureStreamCreateListener(listenIp string, listenPort int) unsafe.Pointer, retStatus { pmap := { } server := Server{ } server.listener = secConn.NewListener(server.listenAddress,

[go-nuts] Returning pointer to struct from cgo to C cause panic: runtime error: cgo result has Go pointer

2018-12-18 Thread eran . yasso
Hi, I have to projects. One is cgo and one is C application. The cgo has a function which needs to return pointer to struct. The C app receives this pointer and then calls other function in cgo with this pointer. I build the cgo as shared lib: *go build -o ebsdk.so -buildmode=c-shared* The