|
-
April 26th, 2010, 01:39 AM
#1
[RESOLVED] ASyncSocket Receive Problem
Hi to All,
In my project i am using CASyncSocket to communicate with server. Some times server send information like "A2BC#Message:aaa", "TEXT#AMessage:bbbbb",but at client side bufferlenght=4096.
AsyncSocket::OnReceive(error)
{
int a=mysocket.Receive(buffer,bufferlength);
}
it first receives only one charecter that is 'A', then after some times it receives remaining data.
some times after receiving one char,then omit the "2BC#Message:aaa" start receiving second message first char 'T', then it might be receive second message remaining data.
Received data ==AT.
Is there any problem in my program or AsyncSocket?
Please help me
it causes more problem with slow network connections.
Thanks in Advance,
Bharath
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|