MudBytes
» MUDBytes Community » Coding Discussions » Custom » First release of PHudBase, a ...
Pages: << prev 1, 2 next >>
First release of PHudBase, a PHP MUD lib with HTML5 WebSocket support
David Haley
Wizard






Group: Members
Posts: 6,874
Joined: Jun 30, 2007

Go to the bottom of the page Go to the top of the page
#16 id:43182 Posted Mar 9, 2010, 4:24 pm

Just looking at the API docs for the two, it seems that there are two main differences:
- the recv version is non-blocking. (The API docs for socket_read don't make it clear if it's blocking or not, though.)
- the recv version doesn't require allocating a new string buffer, so you can save on performance by reusing the same string buffer after you're done with it the first time.
.........................
-- d.c.h --
BabbleMUD Project (custom codebase)
Legends of the Darkstone (head coder)
http://david.the-haleys.org
.........................

Pages:<< prev 1, 2 next >>
Tags
[+]

Valid XHTML 1.1! Valid CSS!