void NetworkTableConnection::sendEntryUpdate(NetworkTableEntry& entry) { { Synchronized sync(WRITE_LOCK); sendMessageHeader(FIELD_UPDATE); ioStream->write2BytesBE(entry.GetId()); ioStream->write2BytesBE(entry.GetSequenceNumber()); entry.SendValue(*ioStream); } }
void NetworkTableConnection::sendEntryAssignment(NetworkTableEntry& entry) { { Synchronized sync(WRITE_LOCK); sendMessageHeader(ENTRY_ASSIGNMENT); ioStream->writeString(entry.name); ioStream->writeByte(entry.GetType()->id); ioStream->write2BytesBE(entry.GetId()); ioStream->write2BytesBE(entry.GetSequenceNumber()); entry.SendValue(*ioStream); } }