Hi Eveyone
I have been trying to get some c# socket code working for a while now and I
can't see what wrong with it. It's supposed to receive a varying number of
bytes over a TCP socket and place them in a buffer. I seem to either get some
of the bytes into the buffer before the end of message break point is hit or I
end up with a index out of range error (when the buffer overflows as I haven't
been able to see the end of the message:
|
I'm trying to use the thread to show when the data has stopped coming into the application, but as I say it does not seem to work.
I'm still quite new to C#, any help anyone can offer would be greatly appreciated :)
AMEY DESHPANDEPosted Jun 22, 2009, 2:03 AM
Your posted information is very minimal to debug your problem please try to post detailed code snippet.
but I guess that you are facing problem with buffer size try increasing the buffer size of the tcp object