Click here to Skip to main content
       

Web Development

 
AnswerMessage Removed PinmemberMember 1015486914-Jul-13 4:14 
GeneralRe: Way to Configure Wordpress? PinmvpDave Kreskowiak14-Jul-13 4:26 
QuestionWhat really "python" is used for? PinmemberToywarrior30-Jun-13 2:23 
AnswerRe: What really "python" is used for? PinmvpRichard MacCutchan30-Jun-13 2:32 
Generalserver: connection vs request - help needed to understand programming theory [modified] PinmemberMember 1004803228-Jun-13 15:14 
GeneralRe: server: connection vs request - help needed to understand programming theory PinprotectorMarc Clifton28-Jun-13 15:35 
GeneralRe: server: connection vs request - help needed to understand programming theory PinmemberMember 1004803229-Jun-13 5:50 
GeneralRe: server: connection vs request - help needed to understand programming theory PinprotectorMarc Clifton29-Jun-13 6:43 
Are you writing your own web server, or an application living in a web server like IIS?
 
If you're writing your own web server (that is, implementing your own TCP/IP connection protocols) then usually you create a thread that then calls the "wait for connection" .NET framework API (or whatever framework you're using) which is blocking. You supply a callback method, which the API function will call asynchronously (so it lives in its own thread), and there you handle the request and exit the thread when done.
 
If you're writing an application using something like IIS, then you don't have to worry about all this - you just let the web application framework handle all this. You would then "simply" associate a route (a URL) to a specific function that handles the URL.
 
There's lots of examples here on CP, I would suggest poking around and getting familiar with both how to write a web server and also how to handle resource requests in a web application.
 
Marc

GeneralRe: server: connection vs request - help needed to understand programming theory PinmemberMember 1004803229-Jun-13 7:33 
GeneralRe: server: connection vs request - help needed to understand programming theory PinmemberMember 1004803229-Jun-13 10:44 
QuestionWCF Reporitng Service Pinmembereddieangel28-Jun-13 7:44 
QuestionForm close code Pinmemberastrixtech28-Jun-13 4:39 
SuggestionRe: Form close code PinmemberDavid Mujica28-Jun-13 4:51 
GeneralRe: Form close code Pinmemberastrixtech30-Jun-13 20:27 
QuestionRadio button default checked Pinmemberastrixtech28-Jun-13 4:33 
QuestionRe: Radio button default checked [modified] Pinmemberastrixtech30-Jun-13 20:29 
AnswerRe: Radio button default checked Pinprofessionalthanh_bkhn30-Jun-13 21:37 
QuestionRe: Radio button default checked Pinmemberastrixtech30-Jun-13 22:12 
AnswerRe: Radio button default checked Pinprofessionalthanh_bkhn30-Jun-13 22:25 
GeneralRe: Radio button default checked Pinmemberastrixtech30-Jun-13 22:40 
GeneralRe: Radio button default checked Pinprofessionalthanh_bkhn30-Jun-13 22:55 
GeneralRe: Radio button default checked Pinmemberastrixtech1-Jul-13 0:00 
QuestionRegarding Wordpress Solution PinmemberDavid Kroj26-Jun-13 23:57 
GeneralHelp for a new and intersted to know about HTML PinmemberBLue.iCe.BoX26-Jun-13 23:41 
GeneralRe: Help for a new and intersted to know about HTML Pinmemberjaideepsinh27-Jun-13 1:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 15 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid