Skip to content

Commit 1cfe1bb

Browse files
committed
Make connections and their queues accessible.
1 parent e513d70 commit 1cfe1bb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib60870/CS104/ClientConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private struct SentASDU
134134
/// <returns>
135135
/// The ASDU queue containing low-priority ASDUs.
136136
/// </returns>
137-
internal ASDUQueue GetASDUQueue()
137+
public ASDUQueue GetASDUQueue()
138138
{
139139
return lowPrioQueue;
140140
}

lib60870/CS104/Server.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,11 @@ public void EnqueueASDU(ASDU asdu)
894894
}
895895
}
896896

897+
public IEnumerable<ClientConnection> GetAllOpenConnections()
898+
{
899+
return allOpenConnections;
900+
}
901+
897902
internal void CallServerStateEventHandler(ServerStateEvent e)
898903
{
899904
if (serverStateEventHandler != null)

0 commit comments

Comments
 (0)