6 years, 1 month ago.

TCP Sockets

Hi everyone! The first question is about sending data with TCP socket. I have a function wich send data, part which use socket is:

    TCPClientPtr->set_blocking(true);
	Status = (AT_ErrCode)TCPClientPtr->send(SocketsTxBufferPtr, SocketSettings->DataCount);

Where SocketsTxBufferPtr is pointer to data and SocketSettings->DataCount is amoung of data. I call it once and all is OK, i got my data in a server, but when i call this function again, data doesn`t send. Only when i close onnection all of data, which i try to send go to server with closing message. I think, I should clear some flags to send data again, but i don`t know.

Be the first to answer this question.