From: Martin W. <meh...@we...> - 2004-08-20 05:01:15
|
Hey, Arne Rempke wrote: >> [...] >> What exactly is not right? I'm quite sure that the FTP description is >> correct. >> References (German): [1], [2] >> And sure I've heard of keep-alive on HTTP connections. But I do not >> know how it >> exactly works. >> >> [1] http://www.uni-erfurt.de/rechenzentrum/anleitungen/ftp.html >> [2] http://www.elektronik-kompendium.de/sites/net/0902241.htm > > FTP is correct, I never claimed it was wrong (you brought this example up). > In HTTP/1.1 the client can add the header "Connection: Keep-alive". If > the server agrees, it won't close the connection after the body but > keeps it open for the next request. OK, but the server knows that if it has the whole body sent it has to listen to new headers. > [...] > Ok, I just saw that the cvs implementation is another that you described > here, so that should work. Oh, dit I forget to mention that I implemented escaping? But that version had also a bug. So I implemented not only masking of \[separator] but of all \ . Here an example: Separator is n . Packet 1: \ Packet 2: foo bar Real sent: \\nfoo bar\n Parsed to: Packet 1: \nfoo bar With the old implementation the first \\n would not be recognized as separator but as masked separator. So with masking all \ : Separator is n . Packet 1: \ Packet 2: foo bar Real sent: \\\nfoo bar\n Parsed to: Packet 1: \ Packet 2: foo bar So this should work now at all events. > [...] > I could say, that it was just not documented and perhaps also not easy > to find in the code, but it was implemented by SDL_net. You only made > your own functions to call the ones of SDL_net (which is of course not > necessaryly a direct mapping of one function wnetwork to one function > SDL_net). But it would probably be hairsplitting and it is not really > important. ACK Regards, martin -- Get my public GPG key from pgp.mit.edu or wwwkeys.pgp.net - Key ID: 0x44085D12 -- Homepage: http://mwegner.de.ms/ Powered by Gentoo Linux (http://www.gentoo.org/) -- Mails von dieser Adresse sind nur gültig, wenn sie mit dem o. g. Schlüssel signiert wurden. Unsignierte Mails von dieser Adresse sind gefälscht und stehen in keinerlei Verbindung zu mir. Mails from this address are only valid if they are signed with the abovementioned key. Unsinged mails from this address are faked and have no relation to me. |