/// <summary> /// Constructs an instance of the SyncSocketWritingStream class. /// </summary> /// <param name="connectionManager">The Connection Manager.</param> /// <param name="socket">The socket.</param> /// <param name="writeTimeout">The timeout of the current operation.</param> /// <param name="dbgConnectionId">The identifier of the connection.</param> /// <param name="remote">Information about the remote host.</param> public SyncSocketWritingStream(ConnectionManager connectionManager, Socket socket, int writeTimeout, int dbgConnectionId, HostInformation remote) { this._connectionManager = connectionManager; this._socket = socket; this._writeTimeout = writeTimeout; this._dbgConnectionId = dbgConnectionId; this._remote = remote; }
/// <summary> /// Constructs an instance of the SyncSocketStream class. /// </summary> /// <param name="socket">The socket.</param> /// <param name="connectionManager">The Connect Manager to update its send/receive counters automatically.</param> /// <param name="timeout">The timeout of the current operation.</param> public SyncSocketStream(Socket socket, ConnectionManager connectionManager, int timeout) { this._socket = socket; this._connectionManager = connectionManager; this._timeout = timeout; }