Click here to Skip to main content
15,899,475 members
Home / Discussions / C#
   

C#

 
QuestionHow to add system drives icons to tree View Pin
Naveed72725-Apr-08 0:04
Naveed72725-Apr-08 0:04 
AnswerRe: How to add system drives icons to tree View Pin
Spacix One25-Apr-08 4:07
Spacix One25-Apr-08 4:07 
AnswerRe: How to add system drives icons to tree View Pin
Ravenet25-Apr-08 6:04
Ravenet25-Apr-08 6:04 
Questionmy HTTP request handler code correct? Pin
George_George25-Apr-08 0:02
George_George25-Apr-08 0:02 
AnswerRe: my HTTP request handler code correct? Pin
Spacix One25-Apr-08 2:22
Spacix One25-Apr-08 2:22 
GeneralRe: my HTTP request handler code correct? Pin
George_George25-Apr-08 2:50
George_George25-Apr-08 2:50 
GeneralRe: my HTTP request handler code correct? Pin
Spacix One25-Apr-08 3:28
Spacix One25-Apr-08 3:28 
GeneralRe: my HTTP request handler code correct? Pin
George_George25-Apr-08 4:00
George_George25-Apr-08 4:00 
Thanks Spacix,


I am going to start your another approach, start method with a delegate. Now I want to ask two more questions about your comments to my original code.

1.

SpacixOne wrote:
Look alright from me


You mean the asynchronous function is implemented ok? Means while the main HTTP Listener thread listens coming request, the received request will be procedded by HttpCallback method at the same time -- which is true asynchronous model? (what I want to void and want to have a code review is because I am afraid I have a wrong implementation which makes a synchronous model, other than an asynchronous model) Smile | :)

2.

SpacixOne wrote:
your callback runs the infinite loop


Why do you think the callback (I think you mean method HttpCallback method) runs the while loop? It should be the HTTPListener main thread which runs the loop?


3.

"and point the delegate to the start method for your HTTP listener"

My understand is you mean pass the callback method as delegate to start method of HTTP Listener class instance. But the start method has no parameter. How could I add a delegate as an input parameter to start method?

http://msdn2.microsoft.com/en-us/library/system.net.httplistener.start.aspx[^]


regards,
George
GeneralRe: my HTTP request handler code correct? Pin
Spacix One25-Apr-08 5:34
Spacix One25-Apr-08 5:34 
GeneralRe: my HTTP request handler code correct? Pin
George_George25-Apr-08 21:34
George_George25-Apr-08 21:34 
QuestionHow to Assign value to CodeMemberField object in CodeDom ? Pin
hdv21224-Apr-08 23:30
hdv21224-Apr-08 23:30 
Questionextracting domain name from email.. Pin
Adoremi24-Apr-08 23:13
Adoremi24-Apr-08 23:13 
GeneralRe: extracting domain name from email.. Pin
phannon8624-Apr-08 23:30
professionalphannon8624-Apr-08 23:30 
GeneralRe: extracting domain name from email.. Pin
Giorgi Dalakishvili24-Apr-08 23:37
mentorGiorgi Dalakishvili24-Apr-08 23:37 
AnswerRe: extracting domain name from email.. [modified] Pin
Spacix One25-Apr-08 2:57
Spacix One25-Apr-08 2:57 
GeneralRe: extracting domain name from email.. Pin
Mike Dimmick25-Apr-08 3:24
Mike Dimmick25-Apr-08 3:24 
GeneralRe: extracting domain name from email.. Pin
Spacix One25-Apr-08 3:36
Spacix One25-Apr-08 3:36 
GeneralRe: extracting domain name from email.. Pin
Adoremi26-Apr-08 7:06
Adoremi26-Apr-08 7:06 
QuestionHow do I force the printer to print in grayscale mode from C#? Pin
Faysal24-Apr-08 22:05
Faysal24-Apr-08 22:05 
AnswerRe: How do I force the printer to print in grayscale mode from C#? Pin
Mircea Puiu25-Apr-08 1:31
Mircea Puiu25-Apr-08 1:31 
Generalcreate a new file with exclusive owner mode Pin
George_George24-Apr-08 21:18
George_George24-Apr-08 21:18 
GeneralRe: create a new file with exclusive owner mode Pin
Ed.Poore24-Apr-08 21:19
Ed.Poore24-Apr-08 21:19 
GeneralRe: create a new file with exclusive owner mode Pin
George_George24-Apr-08 21:30
George_George24-Apr-08 21:30 
GeneralRe: create a new file with exclusive owner mode Pin
Vasudevan Deepak Kumar24-Apr-08 21:22
Vasudevan Deepak Kumar24-Apr-08 21:22 
GeneralRe: create a new file with exclusive owner mode Pin
George_George24-Apr-08 21:30
George_George24-Apr-08 21:30 

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

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