Exemple #1
0
func (c *Channel) Protocol() string {
	return C.GoString(C.CGO_Channel_Protocol(c.cgoChannel))
}
Exemple #2
0
func (c *DataChannel) Protocol() string {
	p := C.CGO_Channel_Protocol(c.cgoChannel)
	defer C.free(unsafe.Pointer(p))
	return C.GoString(p)
}