I'm trying to play with twisted. I've already try to create a server and a client using the appropriate Factory. It's a fantastic framework but only strings can be sent :( I'd like to send some list or array objects as a start, and maybe later use objects from the server inside clients. But currently I'm stuck with some simple questions:
1) In the Factory model, I used methods like "clientConnectionFailed" or "clientConnectionLost", how can I get the same method using PB ? They were very useful for prevent client/server problems.
2) I also used methods like "dataReceived" and "connectionLost" or "connectionMade", how can I get same functions of this methods using PB ?
As you can see I'd like to start by rewriting my code using the PB model instead of Factories. I've looked at the exemples but unlike the Factory's one, I'm unable to understand them.
Thanks in advance for any help =)