[Tutor] sockets, servers, clients, broadcasts...?
ALAN GAULD
alan.gauld at btinternet.com
Sat Jun 5 02:12:09 CEST 2010
> Look at the example in my tutorial. It doesn't use threads but
What is the link for the tutorial?
In my sig.
Go to the V2 version and look for the Network Programming topic.
> what is a context? I dealt with them a lot in Android programming
Nothing to do with Android contexts I'm simply using the
English meaning. In other words my example processes each
request independent of the client, there is no concept of session
state. It basically servers up a sequience of numbers on a firs
come first served basis, it doesn't remember the last number
served per client and give the next number it just serves the
next number to whoever asks for one.
In your case you only have one client per server - albeit with
two servers - so each server only has to deal with a single
client's request so again no need to keep session state
(the context), you just look at the model and act accordingly.
HTH,
Alan G
http://www.alan-g.me.uk/
More information about the Tutor
mailing list