Hi Mark,
I cant seem to get anything sent using the buffer method.
My previous routine, had :
uMemcpy((CHAR*)&test_message.ucTCP_Message,&Ptr[0], Length);
fnSendTCP(TCPsocket, (unsigned char *)&test_message.TCP_Header, Length, TCP_FLAG_PUSH);
which works fine with 1 send. So I simply done the following with buffers , in its place:
in config.h:
#define SUPPORT_PEER_WINDOW
#define WINDOWING_BUFFERS 4
#define CONTROL_WINDOW_SIZE
placed:
#define USE_BUFFERED_TCP outside USE_TELNET define, as not using TELNET.
commented out WAKE_BLOCKED_TCP_BUF, as will never reach 2800 bytes.
left TCP_BUFFER, and TCP_BUFFER_FRAME as default.
within callback placed:
case TCP_EVENT_PARTIAL_ACK: fnSendBufTCP(Socket, 0, usPortLen, TCP_BUF_NEXT);break;
case TCP_EVENT_ACK: fnSendBufTCP(Socket, 0, 0, TCP_BUF_NEXT);break;
and in place of previous fnSendTCP() and uMemcpy(), I placed:
fnSendBufTCP(TCPsocket, (unsigned char *)&test_message, Length, (TCP_BUF_SEND | TCP_BUF_SEND_REPORT_COPY));
but nothing gets sent to server.
Regards
Neil