C++, Linux, socket send performance
I've created a socket using
m_sock = socket(AF_INET, SOCK_STREAM, 0);
Set it to non blocking:
int opts = fcntl ( m_sock, F_GETFL );
opts = ( opts | O_NONBLOCK );
fcntl ( m_sock, F_SETFL,opts );
and then send
send(m_sock, v_pData, v_iDataSize, MSG_NOSIGNAL);
I'm sending about 200bytes , 5 times a second after about 2 minutes it
creates a big buffer and a big delay in sending the data. Is there a way
to improve the send perofrmance? Thanks!
No comments:
Post a Comment