P
pbd22
Hi.
I have a telnet application (which many of you have already helped me
with, thank you).
I am now running into a bit of a serious design problem.
It seems that each new thread (telnet connection) is "connected" to
the pre-existing thread.
So, If I connect and log on as user1.
And, user1 adds value1, value2, and value3 to some variables.
And then user2 connects.
User2 sees the values set by the previously log'd in user.
And, what is worse, the previous user no longer has acess to his
telnet session.
It has been hijacked by the subsequent user.
Should a third user log on, the second user will lose control and so
on.
I am thinking this may piss people off .
Can this be addressed conceptually or should I dump my code here (I
wasn't really sure what to post code-wise).
Thanks again.
Peter
I have a telnet application (which many of you have already helped me
with, thank you).
I am now running into a bit of a serious design problem.
It seems that each new thread (telnet connection) is "connected" to
the pre-existing thread.
So, If I connect and log on as user1.
And, user1 adds value1, value2, and value3 to some variables.
And then user2 connects.
User2 sees the values set by the previously log'd in user.
And, what is worse, the previous user no longer has acess to his
telnet session.
It has been hijacked by the subsequent user.
Should a third user log on, the second user will lose control and so
on.
I am thinking this may piss people off .
Can this be addressed conceptually or should I dump my code here (I
wasn't really sure what to post code-wise).
Thanks again.
Peter