mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Adds extended Remote Connection Listener
Since we now get ConnectionInfo when setting a connection listener, there is some good information in there that teams could use. Implemented using default interface methods, so teams should see no change if they don't implement the Ex methods. I noticed that the connection listener methods don't exist at all in C++, so they did not get added there.
This commit is contained in:
@@ -214,9 +214,9 @@ public class NetworkTable implements ITable, IRemote {
|
||||
|
||||
public void apply(int uid, boolean connected, ConnectionInfo conn) {
|
||||
if (connected)
|
||||
targetListener.connected(targetSource);
|
||||
targetListener.connectedEx(targetSource, conn);
|
||||
else
|
||||
targetListener.disconnected(targetSource);
|
||||
targetListener.disconnectedEx(targetSource, conn);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user