2004-10-23 jrandom

* Minor ministreaming lib refactoring to simplify integration of the full
      streaming lib.
    * Minor bugfixes to data structure serialization.
This commit is contained in:
jrandom
2004-10-24 01:42:34 +00:00
committed by zzz
parent 2b9e16c9c9
commit 813679ba25
9 changed files with 809 additions and 684 deletions

View File

@@ -1,5 +1,7 @@
package net.i2p.client.streaming;
import java.util.Properties;
/**
* Define the configuration for streaming and verifying data on the socket.
*
@@ -19,7 +21,18 @@ public class I2PSocketOptions {
_writeTimeout = DEFAULT_WRITE_TIMEOUT;
_maxBufferSize = DEFAULT_BUFFER_SIZE;
}
public I2PSocketOptions(I2PSocketOptions opts) {
_connectTimeout = opts.getConnectTimeout();
_readTimeout = opts.getReadTimeout();
_writeTimeout = opts.getWriteTimeout();
_maxBufferSize = opts.getMaxBufferSize();
}
public I2PSocketOptions(Properties opts) {
}
/**
* How long we will wait for the ACK from a SYN, in milliseconds.
*