Struct shout::ShoutConn
[−]
[src]
pub struct ShoutConn { /* fields omitted */ }
Methods
impl ShoutConn
[src]
fn reconnect(&self) -> Result<(), ShoutConnError>
Attempts to reconnect to the connection
fn send(&self, data: &[u8]) -> Result<(), ShoutErr>
Sends data to the server, parsing it for format specific timing info.
fn send_raw(&self, data: &[u8]) -> Result<usize, ShoutErr>
Sends unparsed data to the server. Do not use this unless you know what you're doing. Returns the number of bytes writter, or < 0 on error.
fn queue_len(&self) -> isize
Returns the number of bytes on the write queue. Only makes sense in nonblocking mode.
fn sync(&self)
Sleeps the thread until the server requires more data
fn delay(&self) -> i32
Returns the amount of time the caller should wait before sending more data
fn set_metadata(&self, metadata: ShoutMetadata) -> Result<(), ShoutConnError>
Sets metadata for the host