Socket connection prototype