edu.wpi.first.wpilibj.networktables2.server
Class ServerConnectionList
java.lang.Object
edu.wpi.first.wpilibj.networktables2.server.ServerConnectionList
- All Implemented Interfaces:
- FlushableOutgoingEntryReceiver, OutgoingEntryReceiver, ServerAdapterManager
public class ServerConnectionList
- extends Object
- implements FlushableOutgoingEntryReceiver, ServerAdapterManager
A list of connections that the server currently has
- Author:
- Mitchell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerConnectionList
public ServerConnectionList()
add
public void add(ServerConnectionAdapter connection)
- Add a connection to the list
- Parameters:
connection
-
close
public void close(ServerConnectionAdapter connectionAdapter,
boolean closeStream)
- Description copied from interface:
ServerAdapterManager
- Called when a connection adapter has been closed
- Specified by:
close
in interface ServerAdapterManager
- Parameters:
connectionAdapter
- the adapter that was closed
closeAll
public void closeAll()
- close all connections and remove them
offerOutgoingAssignment
public void offerOutgoingAssignment(NetworkTableEntry entry)
- Specified by:
offerOutgoingAssignment
in interface OutgoingEntryReceiver
offerOutgoingUpdate
public void offerOutgoingUpdate(NetworkTableEntry entry)
- Specified by:
offerOutgoingUpdate
in interface OutgoingEntryReceiver
flush
public void flush()
- Specified by:
flush
in interface FlushableOutgoingEntryReceiver
ensureAlive
public void ensureAlive()
- Specified by:
ensureAlive
in interface FlushableOutgoingEntryReceiver
Copyright © 2013. All rights reserved.