return the bytes sent in writeDatagram() and writeUnverifiedDatagram()