[EMAIL PROTECTED] wrote on 10/03/2005 11:59:13 AM:

> Hi there,
>
> The code is a mess right now and I can't post any of it for reasons I
> cannot supply.  Basically it comes down what I see as a state pattern
> for the protocol:
>
> Look for message start.
> Message start received, look for message header.
> Message header valid, look for data.
> Data valid, process the message based on the message header.
> - Any step that fails, look for a new message start.
>

I'm no expert, but it sounds, perhaps, like GOF's Template Method?

_______________________________________________
patterns-discussion mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/patterns-discussion

Reply via email to