Files
i2p.i2p/apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketOptions.java

27 lines
609 B
Java
Raw Normal View History

2004-04-08 04:41:54 +00:00
package net.i2p.client.streaming;
/**
* Define the configuration for streaming and verifying data on the socket.
* No options available...
*
*/
public class I2PSocketOptions {
private long _connectTimeout;
2004-04-10 11:50:11 +00:00
2004-04-08 04:41:54 +00:00
public I2PSocketOptions() {
2004-04-10 11:50:11 +00:00
_connectTimeout = -1;
2004-04-08 04:41:54 +00:00
}
2004-04-10 11:50:11 +00:00
2004-04-08 04:41:54 +00:00
/**
* How long we will wait for the ACK from a SYN, in milliseconds.
*
* @return milliseconds to wait, or -1 if we will wait indefinitely
*/
2004-04-10 11:50:11 +00:00
public long getConnectTimeout() {
return _connectTimeout;
}
public void setConnectTimeout(long ms) {
_connectTimeout = ms;
}
}