Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 how can i send a list of tuples from the server to the client using sockets?
I have a list of tuples that I don't know the length of (I selected it from a sqlite3 database table).

how can I send this list from the server to a client using sockets so that the client could access the values of the list and the tuples and use them? All tuples contain 4 string values.

data = [("cooking","josh", "recepie", "cookies") ,
("fashion", "jessica", "shopping", "dresses"),
("sport", "jake", "basketball", "kobe bryant")]

how can i send this 'data' list of tuples from the server socket to the client socket so that he could access its values?

I'd really appreciate it if you could help me ! Smile
SQL has built-in for getting count of query.
simple example: select count(mycolumn) from mytable where myfilter;
for the socket part, see:

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  how to send an image from server to client using PICKLE module dafdaf 0 179 May-14-2020, 09:08 PM
Last Post: dafdaf
  Python script multi client server sonra 1 212 Mar-24-2020, 03:49 PM
Last Post: Larz60+
  simple udp server/client cardmaker 2 563 Nov-26-2019, 12:36 AM
Last Post: micseydel
  Slow websockets server -> client pattagghiu 0 399 Sep-17-2019, 09:28 AM
Last Post: pattagghiu
  Chat (Client-Server) andresdrr 3 835 Aug-26-2019, 02:01 PM
Last Post: ThomasL
  Python server(Django web site)/client(Python app) connection Junior_Pythoneer 5 668 Jul-05-2019, 05:41 PM
Last Post: noisefloor
  How to combine data taken from server between client and GUI? bescf 9 1,565 Apr-02-2019, 11:48 AM
Last Post: bescf
  recive post request from client(browser) python sockets kunz 1 911 Dec-13-2018, 12:53 AM
Last Post: kunz
  tcp server/client port connection issue valshev 2 2,606 Sep-01-2018, 02:50 PM
Last Post: valshev
  Send data BMP180 between client and server trought module socket smalhao 0 946 Jul-30-2018, 12:56 PM
Last Post: smalhao

Forum Jump:

Users browsing this thread: 1 Guest(s)