First of all, I want to thank the creators and contributors of Poco Library, it is some of the most clean, elegant and comprehensible code I have ever seen.
Now, after all the ass kissing, I have a small question.
I'm trying to build a server application as part of my research, which involves receiving XML messages from an Apache server.
I have gotten some of the work out of the way, by creating classes which inherit from: ServerApplication, TCPServer, TCPServerConnection, ServerSocket, TCPServerConnectionFactory.
The code works fine, indeed it creates a listening socket and new connection objects are recognized when I connect via netcat.
What I would like to know, is how to proceed from here, using an Event-Handler approach for the following:
- Handling incoming (recv) data
Handling connection time-out
Handling connection errors/exceptions
Handling send data
From a little digging I did I found out that maybe ServerReactor is what I am looking for?
Basically what I want is some form of selector/delegate/function pointer/etc which will be called when data is found or an error occurs on a connection.
Any advise on how to proceed is very much welcomed





