Struct superchan::tcp::TcpSenderExperimental [-]  [+] [src]

pub struct TcpSender<T>(_);

TcpSender is the sender half of a TCP connection.

Methods

impl<T> TcpSender<T>

fn new<A: ToSocketAddr>(addr: A) -> IoResult<TcpSender<T>>

Create a new TcpSender (aka TCP client) for the specified address. It will fail if no TcpReceiver (aka TCP server) is waiting to receive the connection.

Trait Implementations

impl<T> Sender<T> for TcpSender<T> where T: Encodable<Encoder<'static>, IoError> + Send

fn send(&mut self, t: T)

Non-blocking send along the channel.