/// <summary> /// Create a new TcpListener on the given IOThread and socket. /// </summary> /// <param name="ioThread">the IOThread for this to live within</param> /// <param name="socket">a SocketBase to listen on</param> /// <param name="options">socket-related Options</param> public TcpListener(IOThread ioThread, SocketBase socket, Options options) : base(ioThread, options) { m_ioObject = new IOObject(ioThread); m_address = new TcpAddress(); m_handle = null; m_socket = socket; }
/// <summary> /// Create a new TcpListener on the given IOThread and socket. /// </summary> /// <param name="ioThread">the IOThread for this to live within</param> /// <param name="socket">a SocketBase to listen on</param> /// <param name="options">socket-related Options</param> public TcpListener([NotNull] IOThread ioThread, [NotNull] SocketBase socket, [NotNull] Options options) : base(ioThread, options) { m_ioObject = new IOObject(ioThread); m_address = new TcpAddress(); m_handle = null; m_socket = socket; }