2007-10-07 16:47:10 +00:00
|
|
|
%start MainMap::Startup
|
|
|
|
%class LoginRequest
|
|
|
|
|
|
|
|
%map MainMap
|
|
|
|
%%
|
|
|
|
|
|
|
|
Startup
|
|
|
|
{
|
|
|
|
AuthRequest
|
|
|
|
AuthRequestStarted
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
AuthRequestStarted
|
|
|
|
{
|
|
|
|
BlankLine
|
|
|
|
AuthRequestFinished
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
AuthRequestFinished
|
|
|
|
{
|
|
|
|
CommandReply
|
|
|
|
CommandReplyStarted
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
CommandReplyStarted
|
|
|
|
{
|
|
|
|
ReplyText
|
|
|
|
GotReplyText
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GotReplyText
|
|
|
|
{
|
|
|
|
BlankLine
|
|
|
|
Startup
|
|
|
|
{
|
|
|
|
setRequestFinished(); callOrErrback();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
BlankLine
|
|
|
|
nil
|
|
|
|
{
|
|
|
|
setRequestFinished();
|
2008-07-13 03:14:44 +00:00
|
|
|
errbackDeferred("Protocol failure - Was not expecting a blank line");
|
2007-10-07 16:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
AuthRequest
|
|
|
|
nil
|
|
|
|
{
|
|
|
|
setRequestFinished();
|
2008-07-13 03:14:44 +00:00
|
|
|
errbackDeferred("Protocol failure - Was not expecting auth request");
|
2007-10-07 16:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CommandReply
|
|
|
|
nil
|
|
|
|
{
|
|
|
|
setRequestFinished();
|
2008-07-13 03:14:44 +00:00
|
|
|
errbackDeferred("Protocol failure - was not expecting a command reply");
|
2007-10-07 16:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ReplyText
|
|
|
|
nil
|
|
|
|
{
|
|
|
|
setRequestFinished();
|
2008-07-13 03:14:44 +00:00
|
|
|
errbackDeferred("Protocol failure - was not expecting reply text");
|
2007-10-07 16:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ProcessLine(line)
|
|
|
|
nil
|
|
|
|
{
|
|
|
|
setRequestFinished();
|
2008-07-13 03:14:44 +00:00
|
|
|
errbackDeferred("Protocol failure - was not expecting need to receive a line that needs to be processed");
|
2007-10-07 16:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
%%
|