Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Streaming images using TCP help

Streaming images using TCP help

Scheduled Pinned Locked Moved C#
helpquestionsysadmintutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TimSWatson
    wrote on last edited by
    #1

    Hi I am having trouble streaming jpeg's from a server to a client using TCP. A lot of the images I recieve are corrupt and some of them are superimposed on top of each other. I have used blocking, non blocking TCP and havnt been able to fix it. I believe that to much time is being taken up processing each frame before recieving the next frame. Therefore the TCP buffer is being overwritten with the next TCP packet. Is this what is happening or is it somthing else? And does anyone know how to fix this problem? Thanx

    L 1 Reply Last reply
    0
    • T TimSWatson

      Hi I am having trouble streaming jpeg's from a server to a client using TCP. A lot of the images I recieve are corrupt and some of them are superimposed on top of each other. I have used blocking, non blocking TCP and havnt been able to fix it. I believe that to much time is being taken up processing each frame before recieving the next frame. Therefore the TCP buffer is being overwritten with the next TCP packet. Is this what is happening or is it somthing else? And does anyone know how to fix this problem? Thanx

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      This is the third day in a row you present the same problem without actually offering any tangible information. You did not tell what classes you use, whether you use extra threads or asynchronous operations, you did not show any code, nothing. I don't think there are many mind readers here, so the only possible answer is: you either have a conceptual bug, or an implementation bug in your code, or a general PC problem, or very bad luck, or something else. :|

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      I only read formatted code with indentation, so please use PRE tags for code snippets.


      I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


      T 1 Reply Last reply
      0
      • L Luc Pattyn

        This is the third day in a row you present the same problem without actually offering any tangible information. You did not tell what classes you use, whether you use extra threads or asynchronous operations, you did not show any code, nothing. I don't think there are many mind readers here, so the only possible answer is: you either have a conceptual bug, or an implementation bug in your code, or a general PC problem, or very bad luck, or something else. :|

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        I only read formatted code with indentation, so please use PRE tags for code snippets.


        I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


        T Offline
        T Offline
        TimSWatson
        wrote on last edited by
        #3

        Ok the reason I havnt provided more info is becuase I have used mutliple methods to try and solve the same problem and none have worked. Blocked socket, non blocking socket, tcpclient ect and all have failed. Therefore the problem is not with classes or extra threads. I have found out that I am having this problem because I am expecting to recieved the whole message in one read rather than multiple reads. I need to learn how to frame the data. A beginners mistake :(

        L 1 Reply Last reply
        0
        • T TimSWatson

          Ok the reason I havnt provided more info is becuase I have used mutliple methods to try and solve the same problem and none have worked. Blocked socket, non blocking socket, tcpclient ect and all have failed. Therefore the problem is not with classes or extra threads. I have found out that I am having this problem because I am expecting to recieved the whole message in one read rather than multiple reads. I need to learn how to frame the data. A beginners mistake :(

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          ikon666 wrote:

          A beginners mistake

          The main mistake is not to provide any information on a single attempt; that way nobody can help you out. Had you shown code, you would most likely have gotten the right answer pretty soon. :|

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


          I only read formatted code with indentation, so please use PRE tags for code snippets.


          I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups