|
CrazyMonkey Feaver
Monkey Guy
Join date: 1 Jul 2003
Posts: 201
|
06-14-2006 21:47
So, im sure im doing something wrong, heres what im doing. Im not using a websever/php/mysql. I decided to instead write my own semi-server app in C++. Here is what its doing: Ill send a request to my pc(from SL), I accept the connection and recive the data ok. then I send back a reply and thats working also. The 1st time I do this everything works 100%, meta data(user name, object name, etc) and body. The second time and every time after that everything works again except the body data is missing, It still reports the Content-Length as 16, which is correct. All meta date correct even the double \r\n right before the body is supposed to show. I know is no my program as far as recieving the body and displaying it goes because I can use a packet sniffer to confirm its just not there. My thinking is im supposed to send back some kind of ACK signal before it will send any more body data or something. I may show some code if needed, once I can clean it up a little and test for more bugs.. (Though I have to admit its mostly hardcoded and not that fancy  So, if anyone has and clues id appreciate it. Thanks.
|
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
06-14-2006 22:47
This is probably not the best place to post asking for help writing and debugging a webserver.
|
|
CrazyMonkey Feaver
Monkey Guy
Join date: 1 Jul 2003
Posts: 201
|
Hmmm
06-14-2006 23:13
From: Keknehv Psaltery This is probably not the best place to post asking for help writing and debugging a webserver. Your tag says "Hacker".. I woulda though youd know  But seriously its not that complicated. I would'nt call it a webserver as it will never be scriptable or even be able to serve web-pages. I just wanna push bits around.. Ill have another look at the HTTP specs again.. Mmmmm - not.
|
|
Lee Dimsum
Registered User
Join date: 22 Feb 2006
Posts: 118
|
06-15-2006 07:55
Where is the difficulty of using a webserver? Why do you tried coding your own?
|
|
CrazyMonkey Feaver
Monkey Guy
Join date: 1 Jul 2003
Posts: 201
|
06-15-2006 09:52
From: Lee Dimsum Where is the difficulty of using a webserver? Why do you tried coding your own? because I can  But mostly because I dont wanna run 3 bloated apps when I can run my own 100k exe file. Plus I feel I can do more -- I dont know how powerful PHP is, but id bet you can do more in C++. If I wanted to calculate something that took alot a cpu time in C I could write it in assembler, etc. I can store data any way I please, I can choose to use memory as a cache for speed, etc. Basically im in control, I like to understand whats going on 100%.
|
|
CrazyMonkey Feaver
Monkey Guy
Join date: 1 Jul 2003
Posts: 201
|
Interesting.
06-17-2006 01:28
*ok, problem really fixed, my own dumb mistake. Thanks to Zero Linden for the help 
|