|
Boost : |
From: Mike Winter (mike.winter_at_[hidden])
Date: 2004-05-06 22:07:20
I'd like to get up the learning curve on some corner of boost and at the
same time improve my socket stream reader/writer code by refactoring to add
protocol parsers by configuration(socket/port), so I can build generic
data-gateway interface. I'm looking for suggestions please. Here's some of
the pertinent interfaces....
class ACE_Event_Handler<STREAM> has-a Socket<STREAM>
+ handle_input()
- recv(Message*&)
+send(Message *)
+ handle_output()
- recv_header(Message*&)
- recv_body(Message*&)
class MessageParser
+ EnumProtocol protocolType(MessageHeader&)
+ Message *parse(Buffer&)
class Message : ACE_Message_Block<NO_SYNCH>
+ void rd_ptr(int)
+ void wr_ptr(int)
+ uchar *rd_ptr()
+ uchar *wr_ptr()
Any suggestions welcomed
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk