Add transmission of data type to sendAll and recvAll