Hi , I need some help in socket programming, could anyone here tell me how can I make something like a client querying data from the server (maybe a dictionary storing stock and their prices) send data from server to the client (according to the request like stock first and then prices maybe price of multiple stocks at a time). Can I also make the data look in a tabular form as well on the client end?
I'm at the point where I have done simple client-server code did played with dictionary and tried sending it over to the client but comes as a single vertical line not in a tabular form, is this even possible? I'm fairly new to python so..
1. How to send rows of data to the client instead of a single vertical line maybe two columns and display like a tabular format to the client?
2. sometimes I do not get all the items in the dictionary stored at the server when I type and send the keyword from the client script to the server script, so i have to type n send the keyword like two times atleast to receive all the items ( Using TCP socket here ).
3. After the first packet I send, the next reply I always receive is of the previous query I sent.
New to python..
Note: both scripts are on the same machine running python2.7