cleanups as requested

This commit is contained in:
sponge
2012-10-30 11:03:11 +00:00
parent fb50f7adb4
commit f56c804e86
17 changed files with 54 additions and 172 deletions

View File

@ -128,7 +128,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
# #
# requiredbuilder fucks up REALLY bad, and thinks java is perl?! # requiredbuilder messes up REALLY bad, and thinks java is perl?!
# It also did not catch the shell requirements! BOOOOOOOOOOO! HISSSSSSSS! # It also did not catch the shell requirements! BOOOOOOOOOOO! HISSSSSSSS!
# #
# requiredbuilder -v -y -s $CWD $PKG # requiredbuilder -v -y -s $CWD $PKG

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB.Demos.echo.echoclient; package net.i2p.BOB.Demos.echo.echoclient;
@ -55,7 +47,7 @@ public class Main {
// exit on anything not legal // exit on anything not legal
break; break;
} }
c = (char)(b & 0x7f); // We only really give a fuck about ASCII c = (char)(b & 0x7f); // We only care about ASCII
S = new String(S + c); S = new String(S + c);
} }
return S; return S;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB.Demos.echo.echoserver; package net.i2p.BOB.Demos.echo.echoserver;
@ -52,7 +44,7 @@ public class Main {
if(b < 20) { if(b < 20) {
break; break;
} }
c = (char)(b & 0x7f); // We only really give a fuck about ASCII c = (char)(b & 0x7f); // We only care about ASCII
S = new String(S + c); S = new String(S + c);
} }
return S; return S;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;
@ -302,14 +294,14 @@ public class MUXlisten implements Runnable {
// Hopefully nuke stuff here... // Hopefully nuke stuff here...
{ {
String boner = tg.getName(); String groupName = tg.getName();
try { try {
_log.warn("destroySocketManager " + boner); _log.warn("destroySocketManager " + groupName);
socketManager.destroySocketManager(); socketManager.destroySocketManager();
_log.warn("destroySocketManager Successful" + boner); _log.warn("destroySocketManager Successful" + groupName);
} catch (Exception e) { } catch (Exception e) {
// nop // nop
_log.warn("destroySocketManager Failed" + boner); _log.warn("destroySocketManager Failed" + groupName);
_log.warn(e.toString()); _log.warn(e.toString());
} }
} }
@ -333,25 +325,25 @@ public class MUXlisten implements Runnable {
// Wait around till all threads are collected. // Wait around till all threads are collected.
if (tg != null) { if (tg != null) {
String boner = tg.getName(); String groupName = tg.getName();
// System.out.println("BOB: MUXlisten: Starting thread collection for: " + boner); // System.out.println("BOB: MUXlisten: Starting thread collection for: " + groupName);
_log.warn("BOB: MUXlisten: Starting thread collection for: " + boner); _log.warn("BOB: MUXlisten: Starting thread collection for: " + groupName);
if (tg.activeCount() + tg.activeGroupCount() != 0) { if (tg.activeCount() + tg.activeGroupCount() != 0) {
// visit(tg, 0, boner); // visit(tg, 0, groupName);
int foo = tg.activeCount() + tg.activeGroupCount(); int foo = tg.activeCount() + tg.activeGroupCount();
// hopefully no longer needed! // hopefully no longer needed!
// int bar = lives; // int bar = lives;
// System.out.println("BOB: MUXlisten: Waiting on threads for " + boner); // System.out.println("BOB: MUXlisten: Waiting on threads for " + groupName);
// System.out.println("\nBOB: MUXlisten: ThreadGroup dump BEGIN " + boner); // System.out.println("\nBOB: MUXlisten: ThreadGroup dump BEGIN " + groupName);
// visit(tg, 0, boner); // visit(tg, 0, groupName);
// System.out.println("BOB: MUXlisten: ThreadGroup dump END " + boner + "\n"); // System.out.println("BOB: MUXlisten: ThreadGroup dump END " + groupName + "\n");
// Happily spin forever :-( // Happily spin forever :-(
while (foo != 0) { while (foo != 0) {
foo = tg.activeCount() + tg.activeGroupCount(); foo = tg.activeCount() + tg.activeGroupCount();
// if (lives != bar && lives != 0) { // if (lives != bar && lives != 0) {
// System.out.println("\nBOB: MUXlisten: ThreadGroup dump BEGIN " + boner); // System.out.println("\nBOB: MUXlisten: ThreadGroup dump BEGIN " + groupName);
// visit(tg, 0, boner); // visit(tg, 0, groupName);
// System.out.println("BOB: MUXlisten: ThreadGroup dump END " + boner + "\n"); // System.out.println("BOB: MUXlisten: ThreadGroup dump END " + groupName + "\n");
// } // }
// bar = lives; // bar = lives;
try { try {
@ -361,8 +353,8 @@ public class MUXlisten implements Runnable {
} }
} }
} }
// System.out.println("BOB: MUXlisten: Threads went away. Success: " + boner); // System.out.println("BOB: MUXlisten: Threads went away. Success: " + groupName);
_log.warn("BOB: MUXlisten: Threads went away. Success: " + boner); _log.warn("BOB: MUXlisten: Threads went away. Success: " + groupName);
tg.destroy(); tg.destroy();
// Zap reference to the ThreadGroup so the JVM can GC it. // Zap reference to the ThreadGroup so the JVM can GC it.
tg = null; tg = null;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;
@ -94,7 +86,7 @@ public class TCPtoI2P implements Runnable {
// exit on anything not legal // exit on anything not legal
break; break;
} }
c = (char) (b & 0x7f); // We only really give a fuck about ASCII c = (char) (b & 0x7f); // We only care about ASCII
S = new String(S + c); S = new String(S + c);
} }
return S; return S;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,7 +11,7 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.BOB; package net.i2p.BOB;

View File

@ -1,17 +1,9 @@
/** /**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE * WTFPL
* Version 2, December 2004 * Version 2, December 2004
* *
* Copyright (C) sponge * Copyright (C) sponge
* Planet Earth * Planet Earth
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
*
* 0. You just DO WHAT THE FUCK YOU WANT TO.
* *
* See... * See...
* *
@ -19,9 +11,8 @@
* and * and
* http://en.wikipedia.org/wiki/WTFPL * http://en.wikipedia.org/wiki/WTFPL
* *
* ...for any additional details and liscense questions. * ...for any additional details and license questions.
*/ */
package net.i2p.i2ptunnel; package net.i2p.i2ptunnel;
// import java.util.ArrayList; // import java.util.ArrayList;

View File

@ -1,3 +1,6 @@
2012-10-30 sponge
* cleanups as requested
2012-10-28 zzz 2012-10-28 zzz
* Addresses: * Addresses:
- Add methods for connectivity detection - Add methods for connectivity detection