You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Socket methods such as .send expect a bytes object as the data to be sent, not a string object. So in line 13 , c.send(b'Thank you for connecting') bytes is needed.
The text was updated successfully, but these errors were encountered:
hieloz
changed the title
typeError raised on Chapter 14/listing14-1.py
TypeError raised on Chapter 14/listing14-1.py
Apr 2, 2018
Socket methods such as .send expect a bytes object as the data to be sent, not a string object. So in line 13 , c.send(b'Thank you for connecting') bytes is needed.
The text was updated successfully, but these errors were encountered: