sign method invocations and use tcp socket to connect