Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


C + + correspondent transmission?

I use C + + to write a SOCKET SEND I would like to send my vector data chain!
Master guiding who do not know how to write about bars Thank you!

I wondered now is not written?
Bool CNetThread : NetSend : (char *sRevBuf)
{
Int Rifa
Char szBuf2[MAXBUFLEN];

Sprintf (szBuf2 "%s" sRevBuf);
   
4003rd overtime judge
If (SocketTimeOut (m_nConnSocket, m_nTimeout) "= 0)
     {
Close (m_nConnSocket);
Return false; 4003rd sent overtime
}
       
I = send (m_nConnSocket, szBuf2, sizeof (szBuf2), 0);
If (i "0)
      {
M_pReadFile->LogWriteToFile (LOGFLAG, "Server write error!");
Return false;
      }
                                
Return true;
}

Nobody back to how urgent a bath!

Finished not save !~_~!

Halo, a test not know?

Not a big problem, which is occasionally encountered in the buffer is full, can not be expected to send the data sent over

There is no good solution?



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com