View Javadoc
1 /************************************************************ 2 * Copyright * 3 * Portions of this software are Copyright (c) 1993 - 2002, * 4 * Chad Z. Hower (Kudzu) and the Indy Pit Crew * 5 * - http://www.nevrona.com/Indy/ * 6 ************************************************************/ 7 package org.indy.telnet; 8 9 import org.indy.TCPClient; 10 11 12 /*** 13 * DOCUMENT ME! 14 * 15 * @version $Revision$ 16 * @author $author$ 17 */ 18 public class TelnetClient extends TCPClient { 19 /*** 20 * Creates a new TelnetClient object. 21 */ 22 public TelnetClient() { 23 } 24 25 /*** 26 * DOCUMENT ME! 27 */ 28 protected void doOnCommand() { 29 } 30 31 public static final class TelnetState { 32 private static byte valInc = 0; 33 public final static TelnetState DATA = new TelnetState("DATA"); 34 public final static TelnetState IAC = new TelnetState("IAC"); 35 public final static TelnetState IAC_SB = new TelnetState("IAC_SB"); 36 public final static TelnetState IAC_WILL = new TelnetState("IAC_WILL"); 37 public final static TelnetState IAC_DO = new TelnetState("IAC_DO"); 38 public final static TelnetState IAC_WONT = new TelnetState("IAC_WONT"); 39 public final static TelnetState IAC_DONT = new TelnetState("IAC_DONT"); 40 public final static TelnetState IAC_SBIAC = new TelnetState("IAC_SBIAC"); 41 public final static TelnetState IAC_SBDATA = new TelnetState("IAC_SBDATA"); 42 public final static TelnetState SBDATA_IAC = new TelnetState("SBDATA_IAC"); 43 private final byte value; 44 private final String description; 45 46 private TelnetState(String description) { 47 this.value = valInc++; 48 this.description = description; 49 } 50 51 public String toString() { 52 return description; 53 } 54 55 public byte byteValue() { 56 return value; 57 } 58 } 59 }

This page was automatically generated by Maven