Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: Internet Connection Pin
Mazdak8-Dec-02 3:24
Mazdak8-Dec-02 3:24 
GeneralRe: Internet Connection Pin
leppie8-Dec-02 3:34
leppie8-Dec-02 3:34 
Generalprocess and network path Pin
imran_rafique7-Dec-02 0:33
imran_rafique7-Dec-02 0:33 
GeneralRe: process and network path Pin
mikasa7-Dec-02 8:16
mikasa7-Dec-02 8:16 
GeneralRe: process and network path Pin
Burt Harris7-Dec-02 9:22
Burt Harris7-Dec-02 9:22 
GeneralDaylight Saving TIme Pin
Bugoy6-Dec-02 20:14
Bugoy6-Dec-02 20:14 
GeneralRe: Daylight Saving TIme Pin
Jon Sagara6-Dec-02 20:22
Jon Sagara6-Dec-02 20:22 
Generalmultithreading Pin
valisekkagari6-Dec-02 9:36
valisekkagari6-Dec-02 9:36 
Hi,
Presently i have a client server application in C# where server will be listening to port X in an infinite loop.When a client connects to it , it serves the client.Once its doen serving the client,its goes to loop again.
What iam looking for is to have server doing some task and also listening to the port as well.once it gets connection request from the client , it stops its task,serves the client and then continues its task.
I thought of doing this with two threads where in one thread it will listening for the clients and in the other thread it will be doing some task.
In the thread where it comes to know that a client has contacted it, it should signal other thread to stop its task and resume task only when client is served.
Any help on this will be greatly appreciated.Iam doin this in C#.


Srinivas Reddy
GeneralRe: multithreading Pin
Burt Harris7-Dec-02 9:46
Burt Harris7-Dec-02 9:46 
GeneralRe: multithreading Pin
valisekkagari12-Dec-02 7:44
valisekkagari12-Dec-02 7:44 
GeneralWindows Services Pin
Nic Oughton6-Dec-02 5:44
professionalNic Oughton6-Dec-02 5:44 
GeneralRe: Windows Services Pin
Burt Harris7-Dec-02 9:26
Burt Harris7-Dec-02 9:26 
GeneralRe: Windows Services Pin
Nic Oughton8-Dec-02 23:04
professionalNic Oughton8-Dec-02 23:04 
GeneralRe: Windows Services Pin
Ragavendran Vaidhyanadhan7-Dec-02 22:40
Ragavendran Vaidhyanadhan7-Dec-02 22:40 
GeneralRe: Windows Services Pin
Nic Oughton8-Dec-02 23:02
professionalNic Oughton8-Dec-02 23:02 
GeneralAdding Progress Bars to ListView Pin
athomas42195-Dec-02 21:04
athomas42195-Dec-02 21:04 
GeneralRe: Adding Progress Bars to ListView Pin
Richard Deeming5-Dec-02 23:47
mveRichard Deeming5-Dec-02 23:47 
GeneralWhy Are Mnemonic (Keys) Not Showing On Windows Forms Pin
Gaul5-Dec-02 17:33
Gaul5-Dec-02 17:33 
GeneralRe: Why Are Mnemonic (Keys) Not Showing On Windows Forms Pin
Richard Deeming5-Dec-02 23:49
mveRichard Deeming5-Dec-02 23:49 
GeneralRe: Why Are Mnemonic (Keys) Not Showing On Windows Forms Pin
Gaul6-Dec-02 16:00
Gaul6-Dec-02 16:00 
QuestionIs there a PushbackInputStream for C# or a work around? Pin
Rodney S. Foley5-Dec-02 13:53
Rodney S. Foley5-Dec-02 13:53 
GeneralLoading Windows Form dynamically into splitter Pin
femthink5-Dec-02 12:24
femthink5-Dec-02 12:24 
GeneralMail Merging with Word & C# Pin
MrEyes5-Dec-02 6:02
MrEyes5-Dec-02 6:02 
GeneralRe: Mail Merging with Word & C# Pin
Eric Gunnerson (msft)5-Dec-02 17:49
Eric Gunnerson (msft)5-Dec-02 17:49 
GeneralRe: Mail Merging with Word & C# Pin
MikeDoerfler6-Dec-02 6:19
MikeDoerfler6-Dec-02 6:19 

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.