log.error(e);
System.err.println(e);
    public static void main(String[] args) {        char defaultChar='A';        int default_mode=0; // receiver        int MSG_SIZE=30000;        int num_msgs=10;        long timeout=3000;        int frag_size=20000;        for(int i=0; i < args.length; i++) {            if("-help".equals(args[i])) {                usage();                return;            }            if("-sender".equals(args[i])) {                default_mode=1;                continue;            }            if("-size".equals(args[i])) {                MSG_SIZE=Integer.parseInt(args[++i]);                continue;            }            if("-num_msgs".equals(args[i])) {                num_msgs=Integer.parseInt(args[++i]);                continue;            }            if("-frag_size".equals(args[i])) {                frag_size=Integer.parseInt(args[++i]);                continue;            }            if("-timeout".equals(args[i])) {                timeout=Long.parseLong(args[++i]);                continue;            }            if("-char".equals(args[i])) {                defaultChar=args[++i].charAt(0);                continue;            }            usage();            return;        }        try {            new FragTest2(defaultChar, default_mode, MSG_SIZE, num_msgs, timeout, frag_size).start();        }        catch(Exception e) {            log.error(e);        }    }