Additional BOB fixes.

Added BOB to clients.config and wrapper.config for new installs.
This commit is contained in:
sponge
2008-10-08 14:28:35 +00:00
parent 18d42ec925
commit caaf0ccfc3
6 changed files with 13 additions and 7 deletions

View File

@ -138,6 +138,7 @@ public class BOB {
}
try {
warn("BOB is now running.");
ServerSocket listener = new ServerSocket(Integer.parseInt(props.getProperty(PROP_BOB_PORT)), 10, InetAddress.getByName(props.getProperty(PROP_BOB_HOST)));
Socket server;

View File

@ -23,11 +23,9 @@
*/
package net.i2p.BOB;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import net.i2p.client.streaming.I2PSocket;
/**

View File

@ -80,7 +80,7 @@ public class TCPio implements Runnable {
/* according to the specs:
*
* The total number of bytes read into the buffer,
* or -1 is there is no more data because the end of
* or -1 if there is no more data because the end of
* the stream has been reached.
*
*/

View File

@ -100,12 +100,10 @@ public class TCPtoI2P implements Runnable {
* @throws java.io.IOException
*/
private void Emsg(String e, OutputStream out) throws IOException {
System.out.println("ERROR TCPtoI2P: " + e);
// Debugging System.out.println("ERROR TCPtoI2P: " + e);
out.write("ERROR".concat(e).getBytes());
out.write(13); // cr
out.flush();
sock.close();
}
/**
@ -152,7 +150,8 @@ public class TCPtoI2P implements Runnable {
// nop
}
}
} catch(I2PException e) {
} catch(I2PException e) {
Emsg("ERROR " + e.toString(), out);
} catch(ConnectException e) {
Emsg("ERROR " + e.toString(), out);