Final move of Dustins network tables patches

Change-Id: I7d351d87e63c8174b62f4ec09f805f685c80019c
This commit is contained in:
Fredric Silberberg
2015-02-07 19:19:59 -05:00
parent 39158754d7
commit bfa4bbaf78
8 changed files with 91 additions and 72 deletions

View File

@@ -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();