Is there any way I can store a socket and a username in a list? I don’t think this is possible, as an integer is required in the list to store the index. What would you guys recommend I do? Really have no idea.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplest way is to store tuples in your list.
Or you can define class, for example UserSock and fill up list with instances of this class