Progress being made.  Buffer fixed (nullterm), working on socket wrapper now.