TCP and UDS server in C# for KDB+

https://learninghub.kx.com/forums/topic/tcp-and-uds-server-in-c-for-kdb

Hi All!

I am trying to build server for TCP and UDS in C# to which KDB+ can connect. CsharpKDB is only client. Is there any good description for messages that KDB processes exchange? How should these be structured? I can try to go through java code but I prefer to read some documentation if there is some.


Thank you!

Mr. J

You can find some details here:
Interprocess communication | Developing | kdb+ and q documentation - Kdb+ and q documentation (kx.com)
Serialization examples | Knowledge Base | kdb+ and q documentation - Kdb+ and q documentation (kx.com)

Thanks!

Additional question. Calling this:

h:hopen `::7000

(neg h)["xx"]

Results in following message:

Byte representation

new byte[] { 1, 0, 0, 0, 16, 0, 0, 0, 10, 0, 2, 0, 0, 0, 120, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }

String representation:


xx

What does part 0, 0, 0, 10, 0, 2, 0, 0, 0 on positions 5 to 13 mean? What does it represent? Message should be with following attributes: LittleEndian: True, Compressed: False, Sync: False, Response: False.


Thank you.

J.