C# Class PRI.ProductivityExtensions.TcpListenerExtensions.TcpListenerable

Class that contains extension methods that extend TcpListener
Show file Open project: peteraritchie/ProductivityExtensions

Public Methods

Method Description
BeginAcceptSocket ( this tcplistener, AsyncCallback callback ) : IAsyncResult

Extends BeginAcceptSocket so that when a state object is not needed, null does not need to be passed. tcplistener.BeginAcceptSocket(callback);

BeginAcceptTcpClient ( this tcplistener, AsyncCallback callback ) : IAsyncResult

Extends BeginAcceptTcpClient so that when a state object is not needed, null does not need to be passed. tcplistener.BeginAcceptTcpClient(callback);

Method Details

BeginAcceptSocket() public static method

Extends BeginAcceptSocket so that when a state object is not needed, null does not need to be passed. tcplistener.BeginAcceptSocket(callback);
public static BeginAcceptSocket ( this tcplistener, AsyncCallback callback ) : IAsyncResult
tcplistener this
callback AsyncCallback
return IAsyncResult

BeginAcceptTcpClient() public static method

Extends BeginAcceptTcpClient so that when a state object is not needed, null does not need to be passed. tcplistener.BeginAcceptTcpClient(callback);
public static BeginAcceptTcpClient ( this tcplistener, AsyncCallback callback ) : IAsyncResult
tcplistener this
callback AsyncCallback
return IAsyncResult