net.i2p.BOB.Demos.echo.echoserver
Class Main

java.lang.Object
  extended by net.i2p.BOB.Demos.echo.echoserver.Main

public class Main
extends Object

Author:
sponge

Constructor Summary
Main()
           
 
Method Summary
(package private) static void chatter(Socket sock)
           
(package private) static void checkline(String line)
          Check for "ERROR" and if so, throw RuntimeException
(package private) static void deleteconn(String[] args)
           
static String Lread(InputStream in)
           
static void main(String[] args)
           
(package private) static void setupconn(String[] args)
           
(package private) static void wrtxt(OutputStream CMDout, String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

Lread

public static String Lread(InputStream in)
                    throws IOException
Throws:
IOException

checkline

static void checkline(String line)
               throws RuntimeException
Check for "ERROR" and if so, throw RuntimeException

Parameters:
line -
Throws:
RuntimeException

wrtxt

static void wrtxt(OutputStream CMDout,
                  String s)
           throws IOException
Throws:
IOException

setupconn

static void setupconn(String[] args)
               throws UnknownHostException,
                      IOException,
                      RuntimeException
Throws:
UnknownHostException
IOException
RuntimeException

deleteconn

static void deleteconn(String[] args)
                throws UnknownHostException,
                       IOException,
                       RuntimeException
Throws:
UnknownHostException
IOException
RuntimeException

chatter

static void chatter(Socket sock)
             throws UnknownHostException,
                    IOException,
                    RuntimeException
Throws:
UnknownHostException
IOException
RuntimeException

main

public static void main(String[] args)
Parameters:
args - tunnelport tunnelnickname