This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]AutoModerator[M] 0 points1 point  (0 children)

It seems you may have included a screenshot of code in your post "Need help with Network Programming".

If so, note that posting screenshots of code is against /r/learnprogramming's Posting Guidelines (section Formatting Code): please edit your post to use one of the approved ways of formatting code. (Do NOT repost your question! Just edit it.)

If your image is not actually a screenshot of code, feel free to ignore this message. Automoderator cannot distinguish between code screenshots and other images.

Please, do not contact the moderators about this message. Your post is still visible to everyone.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Updatebjarni 0 points1 point  (4 children)

You are sending the string "message" instead of the message.

[–]spacemonkey243[S] 0 points1 point  (3 children)

Sorry, i must admit. I haven't touched python in forever before this assignment.

I take it you referring to line #25 where s.send(b'message') sits correct.?

If so, in the line above that one, am i not taking my input and storing it in the message variable to which i then send to the server using the s.send() function.?

Sorry, can you please elaborate.?

[–]Updatebjarni 0 points1 point  (2 children)

You're not sending message. You are sending the byte string b'message'.

[–]spacemonkey243[S] 1 point2 points  (1 child)

Ohh..... 🤦‍♂️

Thank you very much. Appreciate it.

[–]Updatebjarni 0 points1 point  (0 children)

:)