AprsIsConnection currently can Receive() but there is no way to stop receiving and responsibly clean up the system resources (namely, the TCP port). We should implement a call on AprsIsConnection to terminate receiving.
Implementation Suggestions
A simple way to do this would be to change the while(true) in the Receive method to use a private class property boolean. That should be set to true at the beginning of Receive and then we could add a new method called StopReceiving() or something similar to set that to false. Then the next loop will terminate the loop and end the Receive task.
Acceptance Criteria
[ ] Add a StopReceiving() or similar call to AprsIsConnection to stop the running of Receive() and release the active TCP connection
Description
AprsIsConnection
currently canReceive()
but there is no way to stop receiving and responsibly clean up the system resources (namely, the TCP port). We should implement a call onAprsIsConnection
to terminate receiving.Implementation Suggestions
A simple way to do this would be to change the
while(true)
in theReceive
method to use a private class property boolean. That should be set to true at the beginning ofReceive
and then we could add a new method calledStopReceiving()
or something similar to set that to false. Then the next loop will terminate the loop and end theReceive
task.Acceptance Criteria
StopReceiving()
or similar call toAprsIsConnection
to stop the running ofReceive()
and release the active TCP connection