Made protected tcp messengers more generic