I again updated the source for the HTTP/Socket "library" i will need for a few projects of mine. By the way for any readers that may have been noticing that the source for certain projects are being updated and changed and would like to see previous versions are more than welcome request them (and i wont turn down such a request).
The most notable addition is that the HTTP class is a part of a broader "webpage" class. the webpage class performs actions based on the response of the HTTP request; such as caching the cookies, and getting the page resources (like images). i also did some work on the foundation. I went back and improved the socket class, however there are still some issues.
The biggest issue I'm having and AM DYING FOR SOME FEEDBACK, is that after I've received all the data there is a waiting time/delay. I don't understand exactly what I'm doing wrong, as i would prefer to just send my data, receive the servers data and close the connection as quick as possible. I did some studying on the web and one answer i found was to use the "shutdown(socket,SD_SEND)" function. HOWEVER this seems to only 50% fix the problem because when using shutdown sometimes i receive 0 bytes back and worse yet its not consistent, so i conjecture as to what the exact problem is. ANY HELP WOULD BE HOT.
Anyway i would check out the source its not to shabby. The next step is going to be the cool one, but the one that will require the most precoding thinking/planning. The next step is to implment the interactions from one site to the next.
Tuesday, July 1, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment