[Twisted-Python] 回复: Re: Using cred, how to prevent the user repeat-login?

yangyouxiu yangyouxiu at gmail.com
Tue Apr 1 19:26:36 MDT 2014


Thank you very much.
I'll study sscce.
And i have figure out my problem by change my logic process,^_^.
发件人: Glyph
发送时间: 2014-04-01 16:56
收件人: Twisted general discussion
主题: Re: [Twisted-Python] Using cred, how to prevent the user repeat-login?


On Mar 31, 2014, at 6:45 PM, yangyouxiu <yangyouxiu at gmail.com> wrote:


In my Client-Server Application,I do not want two user login with the same login name.

For example, user1 logined with name "test1",then user2 try to login with "test1" too, the login of user2 should be denied. At now, my code could not achieve this goal,so what's the method.
Thanks all!


This is more of a basic Python programming question than a Twisted question; however, I'm sure you'd find some people willing to help, except...:


The following is server code:


When I run this code, nothing happens.  Which is not surprising, because it simply defines some classes.


Please consider attaching a http://www.sscce.org/ so that those of us who might help you out can start from a position where your whole program is working rather than having to guess about what the rest of your code looks like.


Thanks!


-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20140402/bc6ecb79/attachment-0002.html>


More information about the Twisted-Python mailing list