use SocketAgent interface

test on local machine.
Why you need this?