fix received byte count
template class parameter bug fix
bring and isConnectedTo fits for UplinkNetDevice and DownlinkNetDevice