C# (CSharp) Squishy.Network Namespace

Classes

Name Description
ByteBuffer Summary description for IndexedBuffer.
Connection Represents an asynchronous TCP Connection that is synchronized for all critical operations. None of its methods are blocking. Therefore most actions are not completed when returning from a method but should be handled using the given events of this class. If this Connection is throttled, its Throttle will take care of the buffer size management. In that state it is illegal to change the buffersize of the throttled buffers (send- and/or receive- buffer respectively) since the throttling depends on a correctly adjusted buffersize.
ConnectionTunnel TODO: Finish ConnectionTunnel Represents a tunnel that will listen for an incoming Connection. When the connection has been accepted it will connect to a given server and tunnel sent information of both sides.
ConnectionWriter The ConnectionWriter provides several methods to send continuous data from a Stream. When either the Connection disconnects, reading fails or no more data can be read, the stream will be closed after the corresponding event has been raised if CloseStreamAfterTranscaction is set to true - otherwise left open.
DataConnection The DataConnection provides several methods to send continuous data.
Listener
Throttle A Throttle limits the download and/or upload speed of all its Connections to given values. The Throttle will adjust the buffersize of the Connection'str read- and write-buffer, according to the given speed limits. When throttling is discontinued the Throttle will reset the buffersizes to its default values: Connection.DefaultReceiveBufferSize and Connection.DefaultReceiveSendSize
ThrottleGroup
TrafficLimiter
TrafficWatch This class is required for Connection throtteling. When active, a thread will poll all given throttles every PollSpan. That means calculating an exact current speed of all their Connections and continue transfer of all throttled connections.