added socket.go for socket connection code. max buffer size  set according to schumix