set up socket channel