socket creation
test code