Click here to Skip to main content
15,890,670 members
Home / Discussions / C#
   

C#

 
GeneralRe: Magic UI Tab control help Pin
Daniel Bright20-Jan-03 5:52
Daniel Bright20-Jan-03 5:52 
General:mad: Parent/Child Pin
BadDude20-Jan-03 4:14
BadDude20-Jan-03 4:14 
GeneralRe: :mad: Parent/Child Pin
Heath Stewart20-Jan-03 5:36
protectorHeath Stewart20-Jan-03 5:36 
GeneralQuestion about organization Pin
xdavidx19-Jan-03 20:59
xdavidx19-Jan-03 20:59 
GeneralRe: Question about organization Pin
SimonS20-Jan-03 2:21
SimonS20-Jan-03 2:21 
GeneralSmart Client automatically loading ALL assemblies Pin
Ingram Leedy19-Jan-03 20:30
Ingram Leedy19-Jan-03 20:30 
GeneralRe: Smart Client automatically loading ALL assemblies Pin
leppie20-Jan-03 11:29
leppie20-Jan-03 11:29 
GeneralMSDN Asynchronous Examples Pin
19-Jan-03 15:28
suss19-Jan-03 15:28 
Yo hey what's up?

I was skimmin over some of the asynchronous socket examples on MSDN and happened to notice all the call backs were static.

I am not to familar on how this IAsyncResult stuff works but from what I understand they work on another thread receiving data from a client as one example. If a server is receiving data from 2 clients and the everything is already hooked up aka meaning all the call backs.

client1.BeginReceive(state.buffer,0,StateObject.buffersize,0,new AsyncCallback(ReadCallback),state);

client2.BeginReceive(state.buffer,0,StateObject.buffersize,0,new AsyncCallback(ReadCallback),state);

and ReadCallback is static then the are sharing the same instance of it.

But if the instance is already doing work ie. receiving data from one client.
How can it recieve data from another client.

I guess what I am saying is how can 2 threads share one instance of a method.

Thanks for any help or insight on this...

scan
GeneralRe: MSDN Asynchronous Examples Pin
leppie20-Jan-03 11:39
leppie20-Jan-03 11:39 
GeneralCommuncation with Macromedia Flash Pin
CNU19-Jan-03 13:37
CNU19-Jan-03 13:37 
GeneralRe: Communcation with Macromedia Flash Pin
leppie20-Jan-03 11:42
leppie20-Jan-03 11:42 
GeneralRe: Communcation with Macromedia Flash Pin
CNU20-Jan-03 18:03
CNU20-Jan-03 18:03 
GeneralCursors in .NET Assembly DLL Pin
Paul Selormey19-Jan-03 13:20
Paul Selormey19-Jan-03 13:20 
QuestionListBox without border? Pin
Wizard_0119-Jan-03 11:56
Wizard_0119-Jan-03 11:56 
AnswerRe: ListBox without border? Pin
Nnamdi Onyeyiri20-Jan-03 7:10
Nnamdi Onyeyiri20-Jan-03 7:10 
GeneralObject to byte[] Pin
Nnamdi Onyeyiri19-Jan-03 7:15
Nnamdi Onyeyiri19-Jan-03 7:15 
GeneralRe: Object to byte[] Pin
leppie19-Jan-03 7:50
leppie19-Jan-03 7:50 
GeneralRe: Object to byte[] Pin
Nnamdi Onyeyiri19-Jan-03 8:54
Nnamdi Onyeyiri19-Jan-03 8:54 
GeneralRe: Object to byte[] Pin
leppie19-Jan-03 10:17
leppie19-Jan-03 10:17 
GeneralDatagrid problem Pin
Mr BallyDaHob19-Jan-03 3:28
Mr BallyDaHob19-Jan-03 3:28 
GeneralDraw grayed image from ImageList Pin
Wizard_0119-Jan-03 1:46
Wizard_0119-Jan-03 1:46 
GeneralRe: Draw grayed image from ImageList Pin
Nnamdi Onyeyiri19-Jan-03 2:48
Nnamdi Onyeyiri19-Jan-03 2:48 
GeneralScrollBars of MDI Parent Form Pin
Nigel H. Lin19-Jan-03 1:44
Nigel H. Lin19-Jan-03 1:44 
GeneralRe: ScrollBars of MDI Parent Form Pin
Stephane Rodriguez.19-Jan-03 3:48
Stephane Rodriguez.19-Jan-03 3:48 
GeneralRe: ScrollBars of MDI Parent Form Pin
Nigel H. Lin19-Jan-03 5:11
Nigel H. Lin19-Jan-03 5:11 

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.