|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dalsemi.tininet.ppp.Option
The LCP and IPCP protocols use an option format of Type|Length|Data. This class helps in manipulating these options.
| Constructor Summary | |
Option()
Default constructor |
|
Option(int type,
int length,
byte[] data)
Constructor |
|
| Method Summary | |
static void |
copyOptionsToBuffer(byte[] buf,
java.util.Vector options)
Copy options from a vector to a byte array. |
static java.util.Vector |
getOptions(byte[] packet)
Return a vector of options from a packet. |
static int |
getOptionsLength(java.util.Vector options)
Get length of options in buffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Option()
public Option(int type,
int length,
byte[] data)
type - option typelength - option lengthdata - option data as byte array| Method Detail |
public static java.util.Vector getOptions(byte[] packet)
packet - packet to extract options from
public static void copyOptionsToBuffer(byte[] buf,
java.util.Vector options)
buf - byte array to receive optionsoptions - options to copypublic static int getOptionsLength(java.util.Vector options)
options - options to examine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||