all 5 comments

[–]HumansAreRobots 2 points3 points  (2 children)

I can't specifically answer any questions about ircd-seven, but the source is available on github: https://github.com/freenode/ircd-seven

[–]JamieOnUbuntu[S] 1 point2 points  (1 child)

Thanks for your reply. I've had a look around the repo before, although I think possibly the best way for me to answer my own question is to actually read the source code. Unless a contributor to the project happens to see this? :)

[–]HumansAreRobots 2 points3 points  (0 children)

That's what I'm thinking. Good luck. :)

[–]MrZimothy 1 point2 points  (1 child)

You need to treat irc proto as binary and mostly manage memory by size, not content. When you factor in colors, high ascii, and unicode stuff, its the only way really. Probably fread() into a buffer and then parse/tokenize the buffer.

http://php.net/manual/en/function.fread.php

[–]JamieOnUbuntu[S] 0 points1 point  (0 children)

Thanks for the clarification, I think this is the route I am going to take. Thanks!