I'm connecting to Sphinx searchd, code is <a href="http://pastebin.com/
f262be9bc">here</a>.
I know code is clumsy, it's just a prototype. Basic layout of protocol
should be obvious from code, I think.
Some of my guesses is:
1) Is multiple connection.send() equals one send() with concatenated
data?
2) If not, how can I concatenate binary-packed strings? Javascript
seems to turn them into something unusable after using "+" with string.
I have been using
http://jsfromhell.com/classes/binary-parser
to create binary strings for a binary protocol.
Hope it helps
Christian
> To put it short: is it possible now to communicate with TCP servers
> using some sort of binary protocol? I'm using php.js functions pack
> and unpack, but it seems that I missing something here.
>
> I'm connecting to Sphinx searchd, code is <a href="http://pastebin.com/
> f262be9bc">here</a>.
You should check the JS native PostgreSQL client as an example:
http://github.com/creationix/postgres-js
Bye,
Andras