V1/Cet.Develop.NETMF.IO/Net/SocketExtensions.cs
/// <summary>
/// Return a concrete implementation of a TCP listener
/// </summary>
/// <param name="port"></param>
/// <param name="protocol"></param>
/// <returns></returns>
Return a concrete implementation of a TCP listener
Return a concrete implementation of a TCP listener
public static ICommServer GetTcpListener(
            this Socket port,
            IProtocol protocol)
        {
            var client = port.Accept();
            Debug.Print("open");
            return new TcpServer(
                client,
                protocol);
        }
public static ICommServer GetTcpListener ( this Socket port , IProtocol protocol ) { var client = port . Accept ( ) ; Debug . Print ( " " ) ; return new TcpServer ( client , protocol ) ; }
Return a concrete implementation of a TCP listener
Return a concrete implementation of a TCP listener
None
Socket
this
protocol
IProtocol
None
port
None