• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Socket: prefixed string is sent only one or two times  RSS feed

 
Greenhorn
Posts: 6
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using MediaProjection to capture device screen continuously and after this capture is sent over Socket to server (that is a C# desktop application).

The trouble is that apparently the prefixed string is sent only one or two times, and after is sent only the image data (i think) and because this, on server side i have trouble to identify if is receiving the bitmap and the consequence is not receive updated bitmap.

Prefixed string sent by first time:



Prefixed string sent by the second time:




After this, apparently only image data is sent (and from here, the prefixed string not is received anymore):




Android (Java):



Server (C# desktop application):


 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!