please tell me any way i can send the whole data and what are the
limits in send() i mean how much buffer len it can send in one time
You need to call GetLastError() to find out why your attempt to send
failed. AFAIK there's no requirement that all of the data passed to the
send() function be able to fit in a single buffer, so simply having a
large buffer passed to the function shouldn't be a problem. The function
should just block longer (assuming you're using blocking mode, of course).
Look at the actual error value, and that should give you some guidance as
to what you need to fix.
Also, consider providing an actual concise-but-complete code example so
that your question has context.
Pete
ya i am on blocking mode but still when sending large buffer over
network .. send returns -1
> ya i am on blocking mode but still when sending large buffer over
> network .. send returns -1
Grab the last error using WSAGetLastError() after the send call.
That should point to something.
UNT,
Jag