Communicate with the remote agent
Hook socket APIs