added tcp methods to connectioncontroller