pub fn udp_console(&self, addr: &str, port: u32, mirror: bool) -> Result<(), Status> {
        unsafe {
            let ip = CString::new(addr).map_err(|_e| Status::CS_ERROR)?;
            if csound_sys::csoundUDPConsole(
                self.engine.csound,
                ip.as_ptr(),
                port as c_int,
                mirror as c_int,
            ) == CSOUND_STATUS::CSOUND_SUCCESS
            {
                return Ok(());
            }
            Err(Status::CS_ERROR)
        }
    }
/// Turns on the transmission of console messages
///
/// # Arguments
/// * `addr` The UDP server destination address.
/// * `port` The UDP server port number.
/// * `mirror` If it is true, the messages will continue to be sent to the usual destination
/// (see [`Csound::message_string_callback`](struct.Csound.html#method.message_string_callback) ) as well as to UDP.
/// # Returns
/// *Ok* on success or an Status code if the UDP transmission could not be set up.
Turns on the transmission of console messages
Turns on the transmission of console messages
pub fn udp_console(&self, addr: &str, port: u32, mirror: bool) -> Result<(), Status> {
        unsafe {
            let ip = CString::new(addr).map_err(|_e| Status::CS_ERROR)?;
            if csound_sys::csoundUDPConsole(
                self.engine.csound,
                ip.as_ptr(),
                port as c_int,
                mirror as c_int,
            ) == CSOUND_STATUS::CSOUND_SUCCESS
            {
                return Ok(());
            }
            Err(Status::CS_ERROR)
        }
    }
pub fn udp_console ( & self , addr : & str , port : u32 , mirror : bool ) -> Result < ( ) , Status > { unsafe { let ip = CString :: new ( addr ) . map_err ( | _e | Status :: CS_ERROR ) ? ; if csound_sys :: csoundUDPConsole ( self . engine . csound , ip . as_ptr ( ) , port as c_int , mirror as c_int , ) == CSOUND_STATUS :: CSOUND_SUCCESS { return Ok ( ( ) ) ; } Err ( Status :: CS_ERROR ) } }
Turns on the transmission of console messages
Turns on the transmission of console messages
&self
addr
&str
port
u32
mirror
bool
Ok* on success or an Status code if the UDP transmission could not be set up.
Ok * on success or an Status code if the UDP transmission could not be set up .
&self
addr
&str
port
u32
mirror
bool