C# Class PRI.ProductivityExtensions.TcpClientExtensions.TcpClientable

Show file Open project: peteraritchie/ProductivityExtensions

Public Methods

Method Description
BeginConnect ( this tcpClient, IPEndPoint endPoint, AsyncCallback asyncCallback ) : IAsyncResult
BeginConnect ( this tcpClient, IPEndPoint endPoint, AsyncCallback asyncCallback, object state ) : IAsyncResult
BeginConnect ( this tcpclient, String host, Int32 port, AsyncCallback requestCallback ) : IAsyncResult

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. tcpclient.BeginConnect(host, port, requestCallback);

BeginConnect ( this tcpclient, System address, Int32 port, AsyncCallback requestCallback ) : IAsyncResult

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. tcpclient.BeginConnect(address, port, requestCallback);

ConnectAsync ( this tcpClient, EndPoint endPoint ) : System.Threading.Tasks.Task

Connect asyncronously to

Method Details

BeginConnect() public static method

public static BeginConnect ( this tcpClient, IPEndPoint endPoint, AsyncCallback asyncCallback ) : IAsyncResult
tcpClient this
endPoint System.Net.IPEndPoint
asyncCallback AsyncCallback
return IAsyncResult

BeginConnect() public static method

public static BeginConnect ( this tcpClient, IPEndPoint endPoint, AsyncCallback asyncCallback, object state ) : IAsyncResult
tcpClient this
endPoint System.Net.IPEndPoint
asyncCallback AsyncCallback
state object
return IAsyncResult

BeginConnect() public static method

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. tcpclient.BeginConnect(host, port, requestCallback);
public static BeginConnect ( this tcpclient, String host, Int32 port, AsyncCallback requestCallback ) : IAsyncResult
tcpclient this
host String
port System.Int32
requestCallback AsyncCallback
return IAsyncResult

BeginConnect() public static method

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. tcpclient.BeginConnect(address, port, requestCallback);
public static BeginConnect ( this tcpclient, System address, Int32 port, AsyncCallback requestCallback ) : IAsyncResult
tcpclient this
address System
port System.Int32
requestCallback AsyncCallback
return IAsyncResult

ConnectAsync() public static method

Connect asyncronously to
if is not a /// nor an
public static ConnectAsync ( this tcpClient, EndPoint endPoint ) : System.Threading.Tasks.Task
tcpClient this object to connect with
endPoint System.Net.EndPoint
return System.Threading.Tasks.Task