Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6476945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:53:16+00:00 2026-05-25T06:53:16+00:00

I am working on making a client and a server with windows, c++ the

  • 0

I am working on making a client and a server with windows, c++

the design what I decided is

server is just sending what client have to render depends on client’s sending message.

sort of tiles and objects, picture, line, rectangle, circle… could be drawn on client side

and a client just receive a command from server and render something

if server send a message like “draw picture.png srcX srcY width height destX destY”.
(picture.png is there on client side)
then client just parse string and do what I want to.

but.
I want to send a control signal as well

as like below
“for(y = 0; y<30; y++){ for(x = 0; x<30; x++) { draw tile.png 0 0 16 16 x*16 y*16 }}”

I realize that sending a function is not a good idea
(thanks for all replies.)

is there any good idea to solve this problem?

sending

“draw tile.png 0 0 16 16 0 0”

“draw tile.png 0 0 16 16 0 16”

“draw tile.png 0 0 16 16 0 32”

“draw tile.png 0 0 16 16 0 48”

“draw tile.png 0 0 16 16 0 64”

“draw tile.png 0 0 16 16 0 96”

“draw tile.png 0 0 16 16 0 112”

“draw tile.png 0 0 16 16 0 128”

“draw tile.png 0 0 16 16 0 132”

…for 30*30 time would be overkill

I am searching for efficient way for sending a message “what client have to draw”
drawing is not limited to just tile and object but it may contain drawing effect picture command on any coordinates.

thanks for reading.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:53:17+00:00Added an answer on May 25, 2026 at 6:53 am

    Well, if you don’t want to send and execute scripts, try to find some simple solution. For example, message format can be defined as:

    draw file name srcX srcY width height destX destY [srcX srcY width height destX destY ...]
    

    Some optimization may be applied, for example, you can pass only the difference between previous and current image:

    draw tile.png 0 0 16 16 0 0 (5 16)
    

    That means: increase member #5 of previous packet by 16.

    I know this is quite primitive, but simple for implementation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a silverlight client, making use of a web server,
I have a server, and Client that are working fine, they transfer file to
I'm working on making a simple server application with python, and I'm trying to
I am making simple one on server side & one on client side application
I have a .NET Windows Service which spawns a thread that basically just acts
I'm working on a client server app using the Tracer Bullet approach advocated in
I'm working on making an HTTP server for my class. But, the returned file
I am working on a client/server (WPF/WCF) application using the MVVM pattern. Properties on
I'm working with the Minecraft Server To Client protocol documentation for a server I
I'm working on a little client that interfaces with a game server. The server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.