Python Forum
Client server Multithreading
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Client server Multithreading
#3
Thank you so much for your help. I'll try to implement this idea in my code.
And yes, I am using sockets to connect my clients with the server.
I was thinking to store the elements in the client queue. THen convert the queue to a list and send it over to the socket.

Then the server will send a message after some time asking for some info. If the client has some words with it, it will respond.

Timer I am still confused, since:- If we use time.sleep(60), it just hangs the complete program.

Will it not affect the functionality?



Also, 1 more query... Can I make use of JSON to convert the entire list to bytes. if yes, then how can I send the JSON converted bytes over the socket?
send.encode() command does not work for it. It just gives the socket timeout error.
Reply


Messages In This Thread
Client server Multithreading - by Anan - Mar-20-2021, 10:08 PM
RE: Client server Multithreading - by SheeppOSU - Mar-27-2021, 02:41 AM
RE: Client server Multithreading - by Anan - Mar-27-2021, 07:05 AM
RE: Client server Multithreading - by SheeppOSU - Mar-28-2021, 02:53 PM
RE: Client server Multithreading - by sankarachari - Apr-20-2021, 07:20 AM
RE: Client server Multithreading - by Anan - Apr-20-2021, 06:13 PM
RE: Client server Multithreading - by SheeppOSU - Apr-21-2021, 08:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Paramiko Server -- Exception (server): Error reading SSH protocol banner ujlain 3 4,744 Jul-24-2023, 06:52 AM
Last Post: Gribouillis
  Client/Server proper finalizing transfer wolfman5874 1 1,492 Jul-04-2022, 07:35 PM
Last Post: wolfman5874
Bug Problem connecting TLS client written in C++ and Twisted server gpropf 0 1,421 Jun-12-2022, 05:57 PM
Last Post: gpropf
  Server/client basic communication ebolisa 0 2,060 Sep-30-2021, 12:22 PM
Last Post: ebolisa
Question Trouble with Client/Server reverse Shell! Gilush 0 2,826 Feb-03-2021, 01:04 PM
Last Post: Gilush
  Basic client server code question swisscheese 4 3,296 Dec-12-2020, 08:51 AM
Last Post: Larz60+
  How can i create a server for already existing client using Python? Chapanson 21 7,738 Aug-19-2020, 09:12 AM
Last Post: DeaD_EyE
  Simple TCP Client and TCP Server Problem Vapulabis 5 4,451 Jul-12-2020, 05:09 PM
Last Post: ndc85430
  how to send an image from server to client using PICKLE module dafdaf 1 3,142 Jun-02-2020, 01:08 PM
Last Post: nuffink
  how can i send a list of tuples from the server to the client using sockets? dafdaf 1 3,946 Apr-13-2020, 10:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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