adding socket interface code

adding file to support socket interface