Sometime on Sep 4, TW cobbled together some glyphs to say:
struct sendbuff { int count; char toprint[10000]; };
[snip]
while(1) //Beggining of While {
while(bytesrcvd<sizeof(mybuff)) {
possible bug here. you're not taking into account word alignment. The actual size of a struct in memory is not the same as the sum of its elements. It may be larger to account for aligning variables on word boundaries.
You need to have serialize and deserialize functions for your struct that convert it into a byte stream and back.