Click here to Skip to main content
15,895,777 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi Seniors,
I am trying to learn socket programming on linux in C. But in between I have a query which you can guide me if possible.

Problem: I want to transfer a form ( which basically have fields for the user to enter into ) from a server to the client program. Now, in the client program since the gui of the form do not really play vital role in entering the details, I want to just simply display the entire form as a black background indicating only the fields need to be entered in white or highlighting the required fields only and the text with some other colors instead of simulating the entire gui of the original form in the server.

So in this regards, is there a way that i can do by reducing the High resolution pixels to low resolution pixels etc.,

Can you please suggest a method of implementing the above so that the performance can be more in transmitting the form from Server to Client.

Regards,
Posted
Comments
Sergey Alexandrovich Kryukov 5-Nov-11 21:07pm    
Not clear: why doing so? why do you thing this could improve performance? why using bitmap graphics at all?
--SA
[no name] 6-Nov-11 12:00pm    
My question was to simulate GUI Server program on Client side with a Black and white screen.

If your client program has http parsing and rendering capability, why not exposing your form as a web page ?

If you prefer a do-it-yourself solution, let the server provide some kind of form description (xml based or raw data), and let the client render the form by means of the local GUI capabilities, if any.

Or use plain text mode :) In the old days, you could monitor text fields and cursor movements on a console by means of the so called ANSI Escape Sequences.

In fact, you are providing so little information on the context that no serious advice can be given.
 
Share this answer
 
Instead of 'reducing pixel resolution' why don't you send the relevant GUI data (e.g. form position and dimensions, etc...) and, with such a info, rebuild the 'low resolution form' on the client side (or, better, use HTML as already suggested)?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900