I have a hard time grasping how to implement sockets using the CActive model. All examples are based upon it, and are really simple, and I can't seem to figure out how to use it for a "command-driven-protocol" like SMTP/POP etc.

- Are there any more advanced samples to download?
- Would it be better to put the sockets in a thread?
- Has someone made some wrapper classes?

Any help appreciated!

Best Regards,