Thanks, Vadym, but I have called TcpClient.Close/TcpListener.Stop before the
objects go out of scope (I did not include that info in my original post
because those methods are always called in my code when their activity has
ended -- I just pressumed that would have been read as understood, -- so much
for presumption).
The error message occurs after the .Close (or .Stop) methods are called and
after the objects go out of scope and the objects are re-instantiated within
the same instance of the application. If the application is terminated and
then restarted, it works without error the first time the objects are created
and used, but after that (until the app shutsdown) I get this error. It
would seem to make sense to expose the SocketOption.ReuseAddress property in
these classes but I see no such methods. I presume the TcpClient and
TcpListener classes were derived from the Socket class, yes?