Quote:
Originally Posted by room14
I just wanted to know, how does this thing work?
|
No idea which thing you're talking about, so I'll cover both:
The program:
It is pretty much entirely python. once the user credentials are entered, python spawns a thread that immediately hides the password and tries to connect to the host. The host returns a series of codes that can be interpreted by the program. When a login succeeds, the program gets a session token, that is used to connect for the remainder of the session. When the program requests posts, the server-side script returns a pickles object containing all posts for the user since it last queried the server. This allows the server to give the program multiple messages at once in case it missed one.
The server:
TO keep the program secure, I'm not going to reveal how it functions. Arty is the only one that knows because he knows a bunch about AJYTHON. (Alice Java Python)
The dialog script:
This script uses a standard dialog convention that Arty and I built a few months back. It spawns a thread to run, stops the world, waits for input, and then sets a world variable. I forgot about this for a bit and will probably implement it in the next version of chat. (Considering it could easily be put at the beginning of the check-thread. In fact, the new version will probably be built from scratch to take advantage of all the server updates I'm making.
P.S. My FREE HOST is back up, so post away!