Hi,

I am trying to transmit some data to an IP based device from my 
Linux machine. Am using a TCP Server/Client C code for the same. As 
of now i am able to establish communication with the relevant ports. 
The problem remains in the packets being transmitted. I cannot 
transmit a "NULL" through the packet. As soon as the "NULL" comes in 
the packet is broken off into another packet and this blocks me from 
sending the right data.

Following is the stream that i recieve on the Server if i loop-back:

0x23 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00

Actually i have 0x00's before 0x23 and also much data after 0x23, 
but as a matter of consequence the packet is divided before 0x23 and 
after 0x23 because of the "NULL" present after and before 0x23.

Can a way be suggested to transmit data with the NULL being also 
transmitted.

Thanks.
Ankit Shah.


Reply via email to