-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host and Join presentations #3
Conversation
I wanted to handle this in the __connectCentral method, but it's not possible without storing a reference to the callback somewhere. That degrades rapidly if the user, let's say preses submit twice quickly. Return a GenericFailure to the user with a conneciton failed method if connecting to the central server failed.
If the user ever sends a message to the central server, there's a response associated with it. (at least thus far) Other connections will be different.
I will have these done by late (early morning) Sunday night, currently at On Sat, May 10, 2014 at 5:00 PM, Josh Terrell [email protected]:
|
If it is documented some where, can you point me in the right direction of On Sat, May 10, 2014 at 9:24 PM, Kevin Le [email protected] wrote:
|
You won't be able to get the actual data yet as far as I know. Our plan was to get that info from CalPoly's CAS after the user logs in. We should discuss it some more soon when we all have a chance. |
Joel is correct, we don't have the actual data.. however the server replies back with "moch data" in the login response. Both the student and the presenter receive a list of classes upon logging in. The list is slightly different depending on if the student is a presenter or a student. The list currently isn't used for anything, but here is where it is available. Within that callback, For student, each element of the
For presenter, each element of the array looks like this:
So essentially, we must display these lists to the user so they can select a class to join/host. Once they select a class, we try to host or join the class selected. Host is completely functional atm. I am working on Join. Both methods are called from the Every response object is guarenteed to have at least one attribute: To host a presentation we need to call To join a presentation we need to call Note: I noticed you replied from email @kle622 . This message will look a lot better in github because I used markdown to format the content. |
This is the beginning of join-presentation. First the student requests to join a presentation. The central server validates the request and responds to the student. That is the summary of what this commit does. Next up: the central server responded with connection info for the student to connect to the presenter.. connect to the presenter now.
Once the central server has responded to the student with the presenter's ip and port, connect to it. Next: join the presentation (authenticating with presenter).
The verify field-type methods are used to verify that received data is of the correct type. Move it to the BaseConneciton that way the presenter server can use it.
The last phase of join presentation is now complete. The student joins the presenter and the presenter checks with the central server to verify that the student may join.
For the time being, this isn't where we want it. Eventually it will go here.
Directly after logging in, the user is greeted with the dialogs to chose the classes to host/join. These dialogs need to be updated a bit further.
Calls are being made but I am getting a 'Connection' object has no attribute _Connection_settings error
…ect in Join fails.
Display failure reason in static label if failed. Display all class properties in Join presentation listCtrl. Fix logic error in connections where failure and success were swapped.
Add a new verificaiton step in receive_host that verifies that the presenter isn't hosting the presentation from somewhere else.
Now the server doesn't have to be restarted every time a presentation needs to be hosted. If the presenter's conneciton closes and he was hosting a presentation, stop hosting that presentation.
host presentation is pretty much done.. now it's time to be able to join a presentation. All that's left after is sending and receiving messages which is superbly easy.
this requires two new guis which I think kevin is responsible for.
One gui is for the presenter to chose a class to host from, and another gui is so the student can chose a class to join.