Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

Posts: 6
  • 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):

All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!