|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dalsemi.tininet.ppp.Protocol
com.dalsemi.tininet.ppp.Lcp
This class implements the Link Control Ptotocol (LCP). The LCP protocol is used to configure link parameters such as encapsulation format, packet size limits and authentication protocols.
| Field Summary | |
protected static int |
LCP_PROTOCOL_NUMBER
LCP protocol number as defined in RFC 1661 |
protected boolean |
passive
Contains current passive mode state. |
| Fields inherited from class com.dalsemi.tininet.ppp.Protocol |
ACK_RCVD, ACK_SENT, CLOSED, CLOSING, CODE_POS, ID_POS, INITIAL, interfaceNumber, LENGTH_LSB_POS, LENGTH_MSB_POS, opened, OPENED, OPTION_START_POS, PACKET_OVERHEAD, packetID, PASSWORD_FILE, PROTOCOL_LSB_POS, PROTOCOL_MSB_POS, protocolNum, queue, REQ_SENT, STARTING, state, STOPPED, STOPPING, timeoutCount, timeoutCounter, timeoutInterval, timer |
| Constructor Summary | |
Lcp()
Default constructor |
|
| Method Summary | |
void |
close()
Close event |
void |
down()
Down event |
long |
getRemoteAccm()
|
void |
newPacket(byte[] packet)
LCP packets enter here. |
void |
open()
Open event The following methods present the state machine with an event that is not generated by receiving a packet or timeout. |
void |
setAuthenticate(boolean value,
boolean strong)
Set true to authenticate remote peer |
void |
setRemoteAccm(long accm)
|
void |
timeout()
TimerEventListener interface |
void |
unknownProtocol(byte[] packet)
This is to avoid complicating the packet type selector |
void |
up()
Up event |
| Methods inherited from class com.dalsemi.tininet.ppp.Protocol |
findPassword, formatMsg, formatMsg, formatMsg, queueAdd, queueAdd, queueAdd, sendPacket, startTimer, stopTimer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int LCP_PROTOCOL_NUMBER
protected boolean passive
| Constructor Detail |
public Lcp()
| Method Detail |
public void newPacket(byte[] packet)
newPacket in class Protocolpublic void open()
public void close()
public void up()
public void down()
public void timeout()
timeout in interface TimerEventListenerpublic void unknownProtocol(byte[] packet)
public void setRemoteAccm(long accm)
public long getRemoteAccm()
public void setAuthenticate(boolean value,
boolean strong)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||