Advertisement

11.22.2002 at 01:03AM PST, ID: 20405071
[x]
Attachment Details

how to clear socket buffer

Asked by can9999 in C Programming Language

Tags: socket, clear, buffer

I had set socket buffer like this..

buf_size =16*1024;

err = setsockopt( m_hSock, SOL_SOCKET, SO_SNDBUF, (char *)&buf_size, sizeof(buf_size));

Everything ok while sending data to client...

My question is
I want to clear data in the buffer and send data immediately sometimes.

How can I do that ?

thanks.Start Free Trial
 
Loading Advertisement...
 
[+][-]11.22.2002 at 01:21AM PST, ID: 7482458

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.22.2002 at 03:15AM PST, ID: 7482795

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.22.2002 at 10:13AM PST, ID: 7484629

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C Programming Language
Tags: socket, clear, buffer
Sign Up Now!
Solution Provided By: garethwebbley
Participating Experts: 2
Solution Grade: A
 
 
[+][-]11.22.2002 at 04:15PM PST, ID: 7485974

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32