Updated packet transmission functions

Replaced QString with QByteArray as the argument type in transmission
and reception.