defined structures for the transmit and receive threads