added socket, but not working it. Added common struct for send by socket.