If u put it this way, then, it is how to encode and decode the data. But remembering that I can’t use the serialization option that .net gives me. Meaning, converting a structure to a Byte array and the other way around.
pShay
Posts
-
How to send a message in TCP/IP? -
How to send a message in TCP/IP?First of all, thank u all!!! Let me tell u the all story. What I need to do is to send a message over the net. So, I have this structure (which is the message to be sent), and then I have to send it (somehow…) Then, I receive a message which I have to decode and then, according to the header, I parse it back to a structure which I will use in the program. I know that for some of u readers it may seem like a dumb question, but since it is my first time that I have to deal with communication, please accept my ignorance. Much appreciated
-
How to send a message in TCP/IP?U right What I need to do is this: Take a structure and send over a TCP/IP to a client/server on the other side. The problem: I need to transform the structure to an array of bytes which I don’t know how. I can't do this with the serialize function since the other side may or may not have the unserialize function. I tried to do this with casting but it didn’t work. I tried to do this with union' but u can't make an array inside a structure. I tried to do it whit unmanaged code, but the Socket class will accept only managed Byte array. There, I told u all I know. Can u help me?
-
How to send a message in TCP/IP?Hello! I need to send a structure via TCP/IP withuot using serialization! since the other side is unknown i cant use this feature. thanks
-
Creating an array inside a structHello all! In order to send a structure with the SerialPort Without using the serialization methods, I was needed to create a union that contains a struct and a byte array, both with offset 0. I can’t seem to find a way to create an array inside a managed struct (managed union). The problem is that the SerialPort->Write(…) function wont take an unmanaged array as the input.:mad: Can anyone help?:confused:
-
Where r the Shape and Line Controls???Back in the good old VB6 there where the Shape and the Line controls, which were very useful. They seemed to disappear in the VB7 and the C#. Does any one know what happened to them?