home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,878 of 14,669   
   Jorgen Grahn to Test   
   Re: Small HTTP server   
   11 Sep 12 16:32:52   
   
   From: grahn+nntp@snipabacken.se   
      
   On Tue, 2012-09-11, Test wrote:   
   > Thank you for your reply.   
   >   
   > So when I get FD_ACCEPT a new socket has been established.   
   > Should I use that from   
   > then on all messages I get?   
      
   Well, you have to follow the HTTP specification. That includes being   
   prepared to serve any new sockets *and* any old ones, until the HTTP   
   work is done on them.   
      
   It might be easier to implement HTTP 1.0, which IIRC only allows one   
   request per socket.   
      
   > From some net postings I gather that FD_READ have a socket handle in wParam   
   that   
   > I should use for that particular FD_READ. Same would apply for FD_WRITE.   
   >   
   > I could not find definite info on what lParam and wParam has when FD_WRITE   
   etc.   
   > appears   
      
   Someone else will have to answer; I don't know Windows programming.   
      
   /Jorgen   
      
   --   
     // Jorgen Grahn    O  o   .   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca