Socket is not working as it should help!

后端 未结 5 2013
南笙
南笙 2020-12-12 05:26

i made a client and server socket based gui app in which screen is captured and via socket it is transfered to desired listner but i am getting a black out put image a recei

5条回答
  •  感动是毒
    2020-12-12 05:38

    Like @Iridium mentioned, you need to loop Read()-ing until no more data is received.

    Also, please look at MemoryStream to replace all the array element shuffling. A simple Array.CopyTo would already be a vast improvent over the code you have to copy byte arrays

提交回复
热议问题