Socket communication now working.  Still need to be a little smarter for best use by agents but so far so good.