rename setSocket to setOutgoingSocket