initial socket implementation for testing (not linked into insense)