Removed const from socket