[REBOL] Re: Writing a protocol -- a mini intro
From: jeff:rebol at: 6-Feb-2001 13:44
Applause to Holger for the additional the clarifications and
deeper information on port handlers.
> Pass-thru is typically used for "strange" port handlers that
> want to use the port mechanism as the API model, but which
> don't conform to the typical byte or line stream model
> proviaded by the buffering mechanism in the general port
> mechanism. For instance ports that operate on "records"
> often use this model.
I recommended starting out with pass-thru ports for
pedagogical reasons, because you can define each of the
protocol phases and see them in action-- which lets you see
the engine operation, so to speak. :)
As the custom protocol writer gets deeper into it all,
deciding what port paradigm is most fitting helps determine
the appropriate port type from those outlined by Mr. Kruse.
Getting the whole port mechanism to do most of the work for
you is the name of the game.