functional socket connection