receiveLoop
threadStatus = _beginthread(receiveLoop, 0, (void*)&rpcargs);
void receiveLoop(void* rpcargs);