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 7562681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:28:13+00:00 2026-05-30T13:28:13+00:00

In order to develop an app remote desktop WP7, I started to with a

  • 0

In order to develop an app remote desktop WP7, I started to with a desktop simple viewer and it works but the problem that not show all actions that I do in Server side, that’s video in YouTube can show you my problem
http://www.youtube.com/watch?v=3q-FumfYsPQ&feature=youtu.be

I use socket connection and I decode and encode my data (images).

This is my code in WP7 client side

    void Conncet(string IP_Address)
    {

        client_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
        SocketAsyncEventArgs socketEventArg = new SocketAsyncEventArgs()
        {
            RemoteEndPoint = new IPEndPoint(IPAddress.Parse(IP_Address), 4532)
        };
        socketEventArg.Completed += OnConncetCompleted;
        client_socket.ConnectAsync(socketEventArg);
    }
    void StartReceiving()
    {
            byte[] response = new byte[131072];
            SocketAsyncEventArgs socketEventArg = new SocketAsyncEventArgs();
            socketEventArg.Completed += OnReceiveCompleted;
            socketEventArg.SetBuffer(response, 0, response.Length);
            client_socket.ReceiveAsync(socketEventArg);
    }

    private void ViewReceivedImage(byte[] buffer)
    {
        try
        {
            MemoryStream ms = new MemoryStream(buffer);
            BitmapImage bi = new BitmapImage();
            bi.SetSource(ms);
            MyImage.Source = bi;
            ms.Close();
        }
        catch (Exception) { }
        finally
        {
            StartReceiving();
        }
    }

This is my code in Server side (PC) sending images.

  void StartSending()
    {
        while (!stop)

            try
            {
                Image oldimage = scr.Get_Resized_Image(wToCompare, hToCompare, scr.GetDesktopBitmapBytes());
                //Thread.Sleep(1);
                Image newimage = scr.Get_Resized_Image(wToCompare, hToCompare, scr.GetDesktopBitmapBytes());

                byte[] buffer = scr.GetDesktop_ResizedBytes(wToSend, hToSend);

                float difference = scr.difference(newimage, oldimage);


                if (difference >= 1)
                {

                    SenderSocket.Send(buffer);
                }


            }
            catch (Exception) { }
    }

My question is how can I make the send and receive fast to show the PC screen in WP7 in +/- real time.

  • 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-30T13:28:14+00:00Added an answer on May 30, 2026 at 1:28 pm

    You’ll have to find what’s the bottleneck and speed that up. It could be that the network is not working fast enough. Using compression might be the answer.

    It could be that the WP7 machine is not fast enough to show the images. Sending partial screen images or lower resolution might be a solution.

    It could be that the windows machine is simply not grabbing the images fast enough. Chancing some code around might be the solution. Using partial updates could also help.

    I would go for a solution where every update I would only send one corner (upper left, upper right, lower left, lower right) so the entire stack had to send/recieve smaller blobs of data.

    Be aware that the simulator might add/remove some overhead and show non realistic performance. So don’t optimize the code for the simulator (too much)

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

Sidebar

Related Questions

I need to develop an iOS app that implements this simple (I hope) functionality:
I assume it will just crash, right? If I develop an iPhone app that
I develop desktop-based WPF-application, that uses SQL Server 2008 R2 Database and ADO.NET Entity
How to develop a twitter app that post images, message and link into twitter?
I want to develop an app in php that I can link with a
i'm trying to develop my first simple app for iphone using the MapKit. I'm
order by in query is taking to much time in MySQL. SHOW PROFILES shows
Order by descending is not working on LINQ to Entity In the following Query
In order to debug an asp.net web app I have to have IE Script
I have been trying to develop an app for my ipad which i can

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.