// // IConnection.cs // // Copyright (c) František Boháček. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Data; namespace NosSmooth.Comms.Data; /// /// A connection, either a client or a server connection. /// public interface IConnection { /// /// Gets the state of the connection. /// public ConnectionState State { get; } /// /// Gets the stream used for reading the data received. /// public Stream ReadStream { get; } /// /// Gets the stream used for writing data. /// public Stream WriteStream { get; } /// /// Disconnect, close the connection. /// public void Disconnect(); }