On 2013-11-28 20:55, Shammah Chancellor wrote:
On 2013-11-28 19:21:31 +0000, Etienne Cimon said:
Does libevent take care of the byte order in tcp requests?
No. Use network byte order. What are you trying to do?
I'm using postgresql in my project and I chose to rewrite the ddb 
postgresql native connector to use vibe.d's TCPConnection and be able to 
yield. I need it to run LISTEN/NOTIFY commands on active websockets and 
I also thought of a long term project to create a MemoryStore / 
SessionStore around it because it has some good caching abilities too.
So I'm thinking of building on this:
https://github.com/pszturmaj/ddb/
I fixed most of the bugs but it uses a stream.read(ref out) function to 
consume data. I might have to replace it's general use of 
std.socketstream read/write functions with consume!T() and sendCmd(), 
and rethink the structure around that. I don't know how similar MySQL is 
to the frontend/backend api of pgsql. It sucks that I don't have a 
similar read function to work with but it's good to know the hton() are 
there and used in vibe's tcp library.
Does this look interesting to you?
