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