mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Final move of Dustins network tables patches
Change-Id: I7d351d87e63c8174b62f4ec09f805f685c80019c
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* An abstraction for the NetworkTable protocol
|
||||
*
|
||||
*
|
||||
* @author mwills
|
||||
*
|
||||
*/
|
||||
@@ -19,6 +19,7 @@ NetworkTableConnection::~NetworkTableConnection(){
|
||||
|
||||
void NetworkTableConnection::SetIOStream(IOStream* stream)
|
||||
{
|
||||
isValid=(stream!=NULL);
|
||||
ioStream->SetIOStream(stream); //just passing through
|
||||
}
|
||||
|
||||
@@ -102,7 +103,7 @@ void NetworkTableConnection::sendEntryUpdate(NetworkTableEntry& entry) {
|
||||
}
|
||||
|
||||
void NetworkTableConnection::read(ConnectionAdapter& adapter) {
|
||||
int messageType = ioStream->readByte();
|
||||
int messageType = (isValid)?ioStream->readByte():(int)KEEP_ALIVE;
|
||||
switch (messageType) {
|
||||
case KEEP_ALIVE:
|
||||
adapter.keepAlive();
|
||||
|
||||
Reference in New Issue
Block a user