void test (void) { while (1) { sendblock (); delay_ms (1000); } }
FLY_EXP int sendflyn (WORD command, void* pbody, size_t count, WORD identifier) { // count: only message length (not including the 4 bytes for command and n of bytes) static int res=1; if (activeSocket==0) return FER_NOT_CONNECTED; if (count>FL_BUFFERSIZE) return FER_TOO_LARGE_MESSAGE_SIZE; if (hBase==NULL) return FER_FLY_HANDLE_UNAVAILABLE; // if valid handle to window does not exist. else { outBuffer = (char*)pbody; res = sendblock (command, count, identifier); return res; } }