ok i am using the visual studio provided code for httpsvr and have added a bit that when it finds [do-filename-do] in the html it replaces it with around 3000+ characters and sends them as such:
sending 1024 characters at a time and then the remainder, but the send command returns after about 2048 chars:
----------------------
ERROR:
10054 - An existing connection was forcibly closed by the remote host. - WSAECONNRESET
----------------------
is there somewhere that the web browser has a value set that tells it how many chars to accept before closing the port or something???
thanks in advance
Dal
####################
# #
# Darren@DGoulston.com #
###################
Code:
// CString csSendLine, csSend
// int nBytes
while (csSend.GetLength() > 1024)
{
csSendLine = csSend.Left(1024);
csSend = csSend.Right(csSend.GetLength()-1024);
nBytes = Send((LPCTSTR)csSendLine, csSendLine.GetLength());
//error checking is here
}
if (csSend.GetLength() > 0)
{
csSendLine = csSend;
nBytes = Send((LPCTSTR)csSendLine, csSendLine.GetLength());
//more error checking
}
----------------------
ERROR:
10054 - An existing connection was forcibly closed by the remote host. - WSAECONNRESET
----------------------
is there somewhere that the web browser has a value set that tells it how many chars to accept before closing the port or something???
thanks in advance
Dal
####################
# #
# Darren@DGoulston.com #
###################