I have a C server and flex client. Server sends data to client depending upon the commands sent by the client. For example, if the commad is 1 the server would read a file and send the content to the file, if the command is 2 then it would read another file and send the contents to the server, every file is marked by character 'EOF' to indicate the end of the data. I observed that the client is not getting all the data every time. It some times getting data fully and some times not - this happens when the data is big about huge. I tried checking for the EOF by reading byte by byte it is becoming impracticle as this takes processing time. Can someone give me some solution/code snippet in flex that would solve my problem?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!