Reading in basic information from socket