I am uploading a file through a TCPSocket, but every time the sockets read function return less bytes than I have read from the file I need to reinitialize my filepointer. This takes time when the file is 70mb in size and slow down my upload speed.
I would like to have access to the size available to send to my TCPSocket. It seems to be possible deep inside the lwip library, but I cant seem to figure out a way to access it from my program.
Its used like this inside lwipNetTcpSocket( ... )
int outLen = MIN( len, tcp_sndbuf( (tcp_pcb*) m_pPcb) );
Any idea on how to access the socket buffer size available.
Tax
I am uploading a file through a TCPSocket, but every time the sockets read function return less bytes than I have read from the file I need to reinitialize my filepointer. This takes time when the file is 70mb in size and slow down my upload speed.
I would like to have access to the size available to send to my TCPSocket. It seems to be possible deep inside the lwip library, but I cant seem to figure out a way to access it from my program.
Its used like this inside lwipNetTcpSocket( ... )
int outLen = MIN( len, tcp_sndbuf( (tcp_pcb*) m_pPcb) );
Any idea on how to access the socket buffer size available.
Tax