Ah...quite right :-) I would like, as a followup, to have a common superclass for TCP and UDP clients -- then it will be easy to remove this near-duplication.