|Windows 7, Visual Studio 2008, MFC, C++
Intellisense says the arguments for this method are:
Send( const void *lpBuf, int nBufLen, int Flasg = 0 )
An MSDN web page has example code that looks like this:
Send((LPCTSTR)m_sendBuffer + m_nBytesSent,
m_nBytesBufferSize - m_nBytesSent);
Either way, I cannot get the right combination. I have:
GetSystemTime( &m_current_time );
int t1 = sizeof( m_current_time );
int chars_sent = m_C_Server_Send_Time_Socket->Send( (LPCTSTR) m_current_time, t1, 0 );
Where m_C_Server_Send_Time_Socket is the object created from CAsyncSocket to do all the transactions once the connection has been established.
How should the arguments to Send() be written?
Thanks for your time
modified 18-Sep-12 22:50pm.