I have declared a vector like this
vector<char> vbuffer;
and used it as a receive buffer like this..
recv = read(m_fd, &m_vbuffer[totalRecv], SIZE_OF_BUFFER);
It seems like working and now I want to get the raw char data for parsing..
If I have defined a function like this..
char* getData(){
//return char data from the vector
}
How would I fill inside of the function? Thanks in advance..