Python Forum
Problem with Python 3 socket
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with Python 3 socket
#3
Please post the whole code and not just parts.
For me it looks like copy&pasted code from other sources.
For example in your server.py:
sock = socket.socket()
...
client_sock, client_address = self.sock.accept()
self.sock.accept is inside a class, but you assigned before to sock.

So post your whole code, that we can copy it and get a similar StackTrace.
Don't be shy :-D
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
Problem with Python 3 socket - by JChris - Sep-02-2017, 07:15 PM
RE: Problem with Python 3 socket - by nilamo - Sep-02-2017, 10:32 PM
RE: Problem with Python 3 socket - by DeaD_EyE - Sep-02-2017, 10:47 PM
RE: Problem with Python 3 socket - by JChris - Sep-03-2017, 05:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python's socket library to implement a simple TCP server and client that communicate romilly 2 1,513 Aug-29-2024, 02:24 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020