libt2n: (gerd) socket reconnect added (incl. unit tests)