{"action":"created","issue":{"url":"https://api.github.com/repos/colegarien/SDDTermProject/issues/58","labels_url":"https://api.github.com/repos/colegarien/SDDTermProject/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/colegarien/SDDTermProject/issues/58/comments","events_url":"https://api.github.com/repos/colegarien/SDDTermProject/issues/58/events","html_url":"https://github.com/colegarien/SDDTermProject/pull/58","id":109644252,"number":58,"title":"Sc question transmission through sockets","user":{"login":"symbyte","id":6208773,"avatar_url":"https://avatars.githubusercontent.com/u/6208773?v=3","gravatar_id":"","url":"https://api.github.com/users/symbyte","html_url":"https://github.com/symbyte","followers_url":"https://api.github.com/users/symbyte/followers","following_url":"https://api.github.com/users/symbyte/following{/other_user}","gists_url":"https://api.github.com/users/symbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/symbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symbyte/subscriptions","organizations_url":"https://api.github.com/users/symbyte/orgs","repos_url":"https://api.github.com/users/symbyte/repos","events_url":"https://api.github.com/users/symbyte/events{/privacy}","received_events_url":"https://api.github.com/users/symbyte/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/colegarien/SDDTermProject/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"colegarien","id":10368360,"avatar_url":"https://avatars.githubusercontent.com/u/10368360?v=3","gravatar_id":"","url":"https://api.github.com/users/colegarien","html_url":"https://github.com/colegarien","followers_url":"https://api.github.com/users/colegarien/followers","following_url":"https://api.github.com/users/colegarien/following{/other_user}","gists_url":"https://api.github.com/users/colegarien/gists{/gist_id}","starred_url":"https://api.github.com/users/colegarien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colegarien/subscriptions","organizations_url":"https://api.github.com/users/colegarien/orgs","repos_url":"https://api.github.com/users/colegarien/repos","events_url":"https://api.github.com/users/colegarien/events{/privacy}","received_events_url":"https://api.github.com/users/colegarien/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-10-03T20:35:03Z","updated_at":"2015-10-04T17:21:48Z","closed_at":"2015-10-04T16:56:47Z","pull_request":{"url":"https://api.github.com/repos/colegarien/SDDTermProject/pulls/58","html_url":"https://github.com/colegarien/SDDTermProject/pull/58","diff_url":"https://github.com/colegarien/SDDTermProject/pull/58.diff","patch_url":"https://github.com/colegarien/SDDTermProject/pull/58.patch"},"body":"In this update:\r\n\r\n* Question objects are now able to be transmitted by and received by the student question service through java sockets. \r\n\r\n* Once the student question service is started, it sets up a StudentReceiveQuestionAction that runs continuously on another thread waiting for a question to be received on port 8080. When it receives a question, it fires the appropriate notification.\r\n\r\n* In order to demonstrate this functionality, one must use connors fragment to launch the initial question. When selecting an answer and pressing the send button, the question is then serialized and sent through a java socket to 'localhoast' back to itself. This causes it to be received by the socket action class in the previous point, redisplaying the question (through the broadcast notification).\r\n\r\n@Perrofrijole and @song4u  should for sure have a look at this code as well, portions of it should be reusable for their modules (mainly the SocketAction class)."},"comment":{"url":"https://api.github.com/repos/colegarien/SDDTermProject/issues/comments/145367625","html_url":"https://github.com/colegarien/SDDTermProject/pull/58#issuecomment-145367625","issue_url":"https://api.github.com/repos/colegarien/SDDTermProject/issues/58","id":145367625,"user":{"login":"symbyte","id":6208773,"avatar_url":"https://avatars.githubusercontent.com/u/6208773?v=3","gravatar_id":"","url":"https://api.github.com/users/symbyte","html_url":"https://github.com/symbyte","followers_url":"https://api.github.com/users/symbyte/followers","following_url":"https://api.github.com/users/symbyte/following{/other_user}","gists_url":"https://api.github.com/users/symbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/symbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symbyte/subscriptions","organizations_url":"https://api.github.com/users/symbyte/orgs","repos_url":"https://api.github.com/users/symbyte/repos","events_url":"https://api.github.com/users/symbyte/events{/privacy}","received_events_url":"https://api.github.com/users/symbyte/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T17:21:48Z","updated_at":"2015-10-04T17:21:48Z","body":"Yeah, thats what I was trying to clarify yesterday when I was messaging you, I may not have asked the right questions though. The impression I got from your answers is that the p2p is completely port agnostic. I suppose that the p2p service needs to be continually listeneing for new incomming connections on *some*  port, so I see what youre saying that we should keep that port clear on teacher's devices. I was assuming at first that the port is no longer used after a connection is made (I see that asumption as faulty now).\r\n\r\n Also I think the exclusivity of a server socket listeneing to a port is restricted to each device, since any given host can be listening on their own port (for example 8081) with a server socket. That is to say that a student can be listening for questions to come through on port 8081 and that wouldnt interfere with a teacher listening for questions to be returned on port 8081 on their device. It would be a good idea to lay out a standard for what ports we will use for what aspects of the service, just to ensure that there are no conflicts. As you said we can discuss this in the meeting and adjust our port numbers accordingly. "}}