编程知识 cdmana.com

LCM communication module, lightweight communications and marshalling, Chinese coding problem

Cross host communication should use LCM Communication mode , Run into some problems .
1、 Can you set the encoding method of the string , At present, Chinese is garbled , I saw lcm-gen Generated data structure , Encoding strings is just
str.getChars(0, this.pickTitle.length(), __strbuf, 0) (java Code ). In this way, you just copy the characters to One char[] in , How to deal with Chinese ?

2、 Look at source support 4 Medium communication mode ,udp multicast ,tcp,file,memq. But there are no specific examples . Because the development environment needs to communicate across systems ( Different virtual machines , On the same host ) Unable to connect to the same routing segment , Can we pass file Means of communication ?

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/12/20211207162753626M.html

Scroll to Top