dev-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dev-serveez] codec interface


From: stefan
Subject: [dev-serveez] codec interface
Date: Fri, 12 Oct 2001 17:27:20 +0200 (CEST)

Dear Serveez'ers,

  if anyone wondered about the codec subdirectory recently 
added to the core library of Serveez; here a brief explanation.

  The `codec-test.c' file in the test directory demonstrates both,
how to use the codec interface and how to setup a simple
"server loop" with the core API. It reads stdin and uses the 
encoder of a given codec to transform the receive buffer and the
decoder of the same codec to transform the send buffer which gets
written to stdout.

--------- 8< --------------------------------------------------------
The codec interface of the serveez core API supplies routines for 
setting up socket structures to perform encoding or decoding of its 
receive or send buffers. It is a transparent layer of buffer 
transition. The interface itself tries to unify different types of 
codecs. In order to add a new codec the programmer needs to write 
some wrapper functions around the actual implementation to fulfil 
certain entry and exit semantics of this interface.
--------- >8 --------------------------------------------------------

  I would appreciates any comments, objections about how it should 
work and hints to rethink.

Thanks in advance,
        address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]