Esempio n. 1
0
 public TelnetHandler(Option option,
                      HandlerStateAutomaton localState  = null,
                      HandlerStateAutomaton remoteState = null)
 {
     Option      = option;
     LocalState  = localState;
     RemoteState = remoteState;
 }
Esempio n. 2
0
 public EchoHandler() : base(Option.Echo,
                             HandlerStateAutomaton.QMethodYesLocal(),
                             HandlerStateAutomaton.QMethodYesRemote())
 {
     Echo = true;
 }
Esempio n. 3
0
 public static TelnetHandler QMethodDisagreeingHandler(Option option)
 {
     return(new TelnetHandler(option,
                              HandlerStateAutomaton.QMethodNoLocal(),
                              HandlerStateAutomaton.QMethodNoRemote()));
 }