Categories
How to convert string to socket?
There is a code: client_socket, addr = server.accept() sock = str(client_socket) print(client_socket == sock ) #False
Answer the question
In order to leave comments, you need to log in
client_socket is an object. sock is the string received for this object. how to make an object, obviously not a string, match its string representation? obviously, no way.
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question