Skip to content

multithreading server #5

@samnet

Description

@samnet

Hello,

thanks for this pgm.
I have an issue with spawning server threads using the class Server. e.g., in a case like:

while True:
    server.accept()  
    ct=sThread(server.client)
    ct.run()

I guess that optimally we would like server.client to be able to send JSON over TCP in the optimal way afforded by the class Server. But...
It seems to me that server.client is, because of the definition of Server.accept(), an instance of the regular socket class. That is, it is not an instance of your improved for JSON socket class, not an instance of Server.accept(). Am I right?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions