2021.12.27 07:08 PM
hi guys:
can someone give an example of socket udp multicast data formate is protobuf( https://code.kx.com/q/interfaces/protobuf/ )
thanks!
2021.12.29 04:56 AM
Hello,
Thank you for sharing your question with the Community! I will reach out internally and hopefully an example can be given.
Many Thanks
Luke
2022.01.11 04:30 AM
Hello,
Reverting back with some information:
There is no native support for UDP sockets in q, so you need to create a socket in C and then bind that to q. Once you have a socket, you can then serialize the data using .protobufkdb.serializeArray, with the data, to get a byte buffer. That byte buffer can then be sent on the UDP socket either as uni or multicast.
Many Thanks
Luke
2021.12.29 04:56 AM
Hello,
Thank you for sharing your question with the Community! I will reach out internally and hopefully an example can be given.
Many Thanks
Luke
2022.01.11 04:30 AM
Hello,
Reverting back with some information:
There is no native support for UDP sockets in q, so you need to create a socket in C and then bind that to q. Once you have a socket, you can then serialize the data using .protobufkdb.serializeArray, with the data, to get a byte buffer. That byte buffer can then be sent on the UDP socket either as uni or multicast.
Many Thanks
Luke
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.