Cross-platform use structural;

xiaoxiao2021-03-06  83

Practice has proven that in the VC, the structure, no matter how the form, can be sent to Java's application, but it is the same; I have not done it, but the technician of XX Biu X Company told me. Not a problem, and very easy. Just pay attention to some tips, such as: If the structure contains String (unpretentious strings), be sure to convert CHAR [], wait. He didn't say much, he is very Busy. So I am very depressed, because one of my current refinements is to interact with the structure data through TCP and UDP protocols in the VC network application; I first make a TCP protocol in C # Examples of receiving structures under the receipt of structures, the original is ready to use serialization mechanism, but in VC, support serialization is a very troublesome thing. So I decided to use "Convert the structure to the Byte [] array, then send it through the network, the other end of the network will be re-equipped with the protozoa-like structure according to the received Byte []." From the perspective of the idea, for string types in the structure, first define its package attribute as BYVALSTR, to assign it to the value of it. Tring SS = CHAR [32] .tostring (). For int integer types, no conversion is required; however, when processing the int [] type, it has not been found in normal transmission. Summary: (1) Connecting the Structural packet through the network is a good way; (2) There are many details issues in the sending and receiving struct packets, there are more discussion and learning (3) cross-platform cross-system transmission. I haven't found a good way, I have not found a good way, I am looking forward to finding effective ways in the future and telling you. Note: See the example and related discussions on this article: http://community.9cbs.net/expert/topic/3466/3466293.xml? Temp = .6511652

转载请注明原文地址:https://www.9cbs.com/read-104297.html

New Post(0)