func (c *Channel) ReceiveFrame() *Frame { frame := C.dpx_channel_receive_frame(c.ch) if frame == nil { return nil } ourframe := fromCFrame(frame) C.dpx_frame_free(frame) return ourframe }
func (c *Channel) SendFrame(frame *Frame) error { cframe := toCFrame(frame) err := ParseError(int64(C.dpx_channel_send_frame(c.ch, cframe))) C.dpx_frame_free(cframe) return err }