Struct asio::StreamSocket
[−]
[src]
pub struct StreamSocket<P: Protocol> { // some fields omitted }
Provides stream-oriented socket functionality.
Methods
impl<P: Protocol> StreamSocket<P>
[src]
fn async_connect<F, T>(&self, ep: &P::Endpoint, callback: F, strand: &Strand<T>) where F: FnOnce(Strand<T>, Result<()>) + Send + 'static, T: 'static
fn async_read_some<B, F, T>(&self, buf: B, callback: F, strand: &Strand<T>) where B: FnOnce(&mut T) -> &mut [u8] + Send + 'static, F: FnOnce(Strand<T>, Result<usize>) + Send + 'static, T: 'static
fn async_receive<B, F, T>(&self, buf: B, flags: i32, callback: F, strand: &Strand<T>) where B: FnOnce(&mut T) -> &mut [u8] + Send + 'static, F: FnOnce(Strand<T>, Result<usize>) + Send + 'static, T: 'static
fn async_send<B, F, T>(&self, buf: B, flags: i32, callback: F, strand: &Strand<T>) where B: FnOnce(&T) -> &[u8] + Send + 'static, F: FnOnce(Strand<T>, Result<usize>) + Send + 'static, T: 'static
fn async_write_some<B, F, T>(&self, buf: B, callback: F, strand: &Strand<T>) where B: FnOnce(&T) -> &[u8] + Send + 'static, F: FnOnce(Strand<T>, Result<usize>) + Send + 'static, T: 'static
fn at_mark(&self) -> Result<bool>
fn available(&self) -> Result<usize>
fn bind(&self, ep: &P::Endpoint) -> Result<()>
fn cancel(&self)
fn connect(&self, ep: &P::Endpoint) -> Result<()>
fn get_option<T: GetSocketOption<P>>(&self) -> Result<T>
fn io_control<T: IoControl<P>>(&self, cmd: &mut T) -> Result<()>
fn local_endpoint(&self) -> Result<P::Endpoint>
fn read_some(&self, buf: &mut [u8]) -> Result<usize>
fn receive(&self, buf: &mut [u8], flags: i32) -> Result<usize>
fn remote_endpoint(&self) -> Result<P::Endpoint>
fn send(&self, buf: &[u8], flags: i32) -> Result<usize>
fn set_option<T: SetSocketOption<P>>(&self, cmd: T) -> Result<()>
fn shutdown(&self, how: Shutdown) -> Result<()>
fn write_some(&self, buf: &[u8]) -> Result<usize>
impl StreamSocket<LocalStream>
[src]
fn new<T: IoObject>(io: &T) -> Result<StreamSocket<LocalStream>>
impl StreamSocket<Tcp>
[src]
Trait Implementations
impl<P: Protocol> IoObject for StreamSocket<P>
[src]
fn io_service(&self) -> &IoService
Returns a IoService
associated with this object.