public class TcpClientAdapter

Known direct subtypes: TunneledTcpClient

Summary

Simple wrapper around TcpClient.

Property Summary

Flags Type Name Summary
public virtual Socket Client (rw)

(undocumented)

public virtual bool Connected (r)

(undocumented)

public virtual int ReceiveTimeout (rw)

(undocumented)

Constructor Summary

Flags Name Summary
public TcpClientAdapter(TcpClient tcpClient)

(undocumented)

Method Summary

Flags Name Summary
public virtual IAsyncResult BeginConnect(string host, int port, AsyncCallback requestCallback, object state)

(undocumented)

public virtual void Close()

(undocumented)

public virtual void EndConnect(IAsyncResult asyncResult)

(undocumented)

public virtual NetworkStream GetStream()

(undocumented)

Property Detail

public virtual Socket Client (rw)

public virtual bool Connected (r)

public virtual int ReceiveTimeout (rw)

Constructor Detail

TcpClientAdapter

public TcpClientAdapter(TcpClient tcpClient)

Parameters
Name Type
tcpClient TcpClient

Method Detail

BeginConnect

public virtual IAsyncResult BeginConnect(string host, int port, AsyncCallback requestCallback, object state)

Flags public virtual
Return type IAsyncResult
Parameters
Name Type
host string
port int
requestCallback AsyncCallback
state object

Close

public virtual void Close()

Flags public virtual
Return type void

EndConnect

public virtual void EndConnect(IAsyncResult asyncResult)

Flags public virtual
Return type void
Parameters
Name Type
asyncResult IAsyncResult

GetStream

public virtual NetworkStream GetStream()

Flags public virtual
Return type NetworkStream