|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||
Slows down the sending of data to a stream
| Field Summary | |
|---|---|
| long |
rate
Bytes per sec |
| long |
sent
In ticks |
| long |
start
Bytes sent |
| System.IO.Stream |
stream
Stream to send too |
| Constructor Summary | |
|---|---|
|
Throttler(System.IO.Stream passthrough, long rate) Throttler. Slows down sending to a stream according to rate. |
|
| Property Summary | |
|---|---|
| long |
Rate
Gets or sets the rate (bytes per second) |
| Method Summary | |
|---|---|
| long |
Write(byte[] data, int offset, int count) Write some bytes |
| Methods inherited from class System.Object |
|---|
| Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
| Field Detail |
|---|
private long rate
Bytes per sec
private long sent
In ticks
private long start
Bytes sent
private System.IO.Stream stream
Stream to send too
| Constructor Detail |
|---|
public Throttler(System.IO.Stream passthrough,
long rate)
Throttler. Slows down sending to a stream according to rate.
Parameters:
passthrough - Stream to send torate - Rate (bytes per second)| Property Detail |
|---|
public long Rate
Gets or sets the rate (bytes per second)
| Method Detail |
|---|
public long Write(byte[] data,
int offset,
int count)
Write some bytes
Parameters:
data - Dataoffset - Offsetcount - Number of bytes to write
|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT | |||||||||