Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have downloaded a small TCP chat application and hacked it up so that I can send images in the form of bytes over it. Everything works alright and the server recieves the image fine, its just afterwards the network stream locks up. The client can recieve messages from the server after this, but the client can no longer send messages to the server. Any idea?

Edit:
Thanks for the reply.
I am not terminating the stream at all. Could that be the problem?
Posted
Updated 23-Mar-10 13:40pm
v3

1 solution

You broke it.

After the image is being sent are you terminating the stream correctly. If you are using a blocking call to send the image bytes, is it being released when it is finished.

Could be absolutely anyones guess, without seeing how you hacked the code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900