{"action":"created","comment":{"url":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/comments/58146099","id":58146099,"diff_hunk":"@@ -2,24 +2,39 @@\n \n import agni.client.communication.*;\n import agni.client.receiver.*;\n+import java.net.Socket;\n import agni.client.action.*;\n import agni.client.view.*;\n \n public class AgniClient {\n-\n+\t\n     public AgniClient() {\n-\n+    \t\n     }\n \n-    public static void main(String[] args) {\n-        MessageSender messageSender = new MessageSender();\n-        MessageReceiver messageReceiver = new MessageReceiver();\n+    public static void main(String[] args) throws Exception {\n+    \t\n+    \tif (args.length != 2) {\n+            System.out.println(\"Usage: Client <Server IP> <Server Port>\");\n+            System.exit(1);\n+        }","path":"src/agni/client/AgniClient.java","position":24,"original_position":24,"commit_id":"326acaa5f004731e18d52ce1c261fd52443f9746","original_commit_id":"326acaa5f004731e18d52ce1c261fd52443f9746","user":{"login":"enochtsang","id":9893396,"avatar_url":"https://avatars.githubusercontent.com/u/9893396?v=3","gravatar_id":"","url":"https://api.github.com/users/enochtsang","html_url":"https://github.com/enochtsang","followers_url":"https://api.github.com/users/enochtsang/followers","following_url":"https://api.github.com/users/enochtsang/following{/other_user}","gists_url":"https://api.github.com/users/enochtsang/gists{/gist_id}","starred_url":"https://api.github.com/users/enochtsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enochtsang/subscriptions","organizations_url":"https://api.github.com/users/enochtsang/orgs","repos_url":"https://api.github.com/users/enochtsang/repos","events_url":"https://api.github.com/users/enochtsang/events{/privacy}","received_events_url":"https://api.github.com/users/enochtsang/received_events","type":"User","site_admin":false},"body":"This is necessary later but probably not something we should put here now.","created_at":"2016-03-31T23:51:53Z","updated_at":"2016-03-31T23:51:53Z","html_url":"https://github.com/beaesguerra/AgniMessenger/pull/56#discussion_r58146099","pull_request_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/comments/58146099"},"html":{"href":"https://github.com/beaesguerra/AgniMessenger/pull/56#discussion_r58146099"},"pull_request":{"href":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/56","id":64876556,"html_url":"https://github.com/beaesguerra/AgniMessenger/pull/56","diff_url":"https://github.com/beaesguerra/AgniMessenger/pull/56.diff","patch_url":"https://github.com/beaesguerra/AgniMessenger/pull/56.patch","issue_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues/56","number":56,"state":"open","locked":false,"title":"Client receiver logic","user":{"login":"mfalthaw","id":15677820,"avatar_url":"https://avatars.githubusercontent.com/u/15677820?v=3","gravatar_id":"","url":"https://api.github.com/users/mfalthaw","html_url":"https://github.com/mfalthaw","followers_url":"https://api.github.com/users/mfalthaw/followers","following_url":"https://api.github.com/users/mfalthaw/following{/other_user}","gists_url":"https://api.github.com/users/mfalthaw/gists{/gist_id}","starred_url":"https://api.github.com/users/mfalthaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfalthaw/subscriptions","organizations_url":"https://api.github.com/users/mfalthaw/orgs","repos_url":"https://api.github.com/users/mfalthaw/repos","events_url":"https://api.github.com/users/mfalthaw/events{/privacy}","received_events_url":"https://api.github.com/users/mfalthaw/received_events","type":"User","site_admin":false},"body":"please review MessageReceiver and xReceivers","created_at":"2016-03-31T23:42:40Z","updated_at":"2016-03-31T23:51:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/56/commits","review_comments_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/56/comments","review_comment_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues/56/comments","statuses_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/statuses/326acaa5f004731e18d52ce1c261fd52443f9746","head":{"label":"beaesguerra:ClientReceiverLogic","ref":"ClientReceiverLogic","sha":"326acaa5f004731e18d52ce1c261fd52443f9746","user":{"login":"beaesguerra","id":14334617,"avatar_url":"https://avatars.githubusercontent.com/u/14334617?v=3","gravatar_id":"","url":"https://api.github.com/users/beaesguerra","html_url":"https://github.com/beaesguerra","followers_url":"https://api.github.com/users/beaesguerra/followers","following_url":"https://api.github.com/users/beaesguerra/following{/other_user}","gists_url":"https://api.github.com/users/beaesguerra/gists{/gist_id}","starred_url":"https://api.github.com/users/beaesguerra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beaesguerra/subscriptions","organizations_url":"https://api.github.com/users/beaesguerra/orgs","repos_url":"https://api.github.com/users/beaesguerra/repos","events_url":"https://api.github.com/users/beaesguerra/events{/privacy}","received_events_url":"https://api.github.com/users/beaesguerra/received_events","type":"User","site_admin":false},"repo":{"id":53102554,"name":"AgniMessenger","full_name":"beaesguerra/AgniMessenger","owner":{"login":"beaesguerra","id":14334617,"avatar_url":"https://avatars.githubusercontent.com/u/14334617?v=3","gravatar_id":"","url":"https://api.github.com/users/beaesguerra","html_url":"https://github.com/beaesguerra","followers_url":"https://api.github.com/users/beaesguerra/followers","following_url":"https://api.github.com/users/beaesguerra/following{/other_user}","gists_url":"https://api.github.com/users/beaesguerra/gists{/gist_id}","starred_url":"https://api.github.com/users/beaesguerra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beaesguerra/subscriptions","organizations_url":"https://api.github.com/users/beaesguerra/orgs","repos_url":"https://api.github.com/users/beaesguerra/repos","events_url":"https://api.github.com/users/beaesguerra/events{/privacy}","received_events_url":"https://api.github.com/users/beaesguerra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beaesguerra/AgniMessenger","description":"","fork":false,"url":"https://api.github.com/repos/beaesguerra/AgniMessenger","forks_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/forks","keys_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/teams","hooks_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/hooks","issue_events_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues/events{/number}","events_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/events","assignees_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/assignees{/user}","branches_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/branches{/branch}","tags_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/tags","blobs_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/refs{/sha}","trees_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/statuses/{sha}","languages_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/languages","stargazers_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/stargazers","contributors_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/contributors","subscribers_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/subscribers","subscription_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/subscription","commits_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/commits{/sha}","git_commits_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/commits{/sha}","comments_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/comments{/number}","issue_comment_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues/comments{/number}","contents_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/contents/{+path}","compare_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/merges","archive_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/downloads","issues_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues{/number}","pulls_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls{/number}","milestones_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/milestones{/number}","notifications_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/labels{/name}","releases_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/releases{/id}","deployments_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/deployments","created_at":"2016-03-04T02:53:15Z","updated_at":"2016-03-04T04:33:57Z","pushed_at":"2016-03-31T23:42:40Z","git_url":"git://github.com/beaesguerra/AgniMessenger.git","ssh_url":"git@github.com:beaesguerra/AgniMessenger.git","clone_url":"https://github.com/beaesguerra/AgniMessenger.git","svn_url":"https://github.com/beaesguerra/AgniMessenger","homepage":null,"size":4010,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":22,"forks":2,"open_issues":22,"watchers":0,"default_branch":"master"}},"base":{"label":"beaesguerra:master","ref":"master","sha":"91d059a2c1b16cd10fe96343563fe19710a3237a","user":{"login":"beaesguerra","id":14334617,"avatar_url":"https://avatars.githubusercontent.com/u/14334617?v=3","gravatar_id":"","url":"https://api.github.com/users/beaesguerra","html_url":"https://github.com/beaesguerra","followers_url":"https://api.github.com/users/beaesguerra/followers","following_url":"https://api.github.com/users/beaesguerra/following{/other_user}","gists_url":"https://api.github.com/users/beaesguerra/gists{/gist_id}","starred_url":"https://api.github.com/users/beaesguerra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beaesguerra/subscriptions","organizations_url":"https://api.github.com/users/beaesguerra/orgs","repos_url":"https://api.github.com/users/beaesguerra/repos","events_url":"https://api.github.com/users/beaesguerra/events{/privacy}","received_events_url":"https://api.github.com/users/beaesguerra/received_events","type":"User","site_admin":false},"repo":{"id":53102554,"name":"AgniMessenger","full_name":"beaesguerra/AgniMessenger","owner":{"login":"beaesguerra","id":14334617,"avatar_url":"https://avatars.githubusercontent.com/u/14334617?v=3","gravatar_id":"","url":"https://api.github.com/users/beaesguerra","html_url":"https://github.com/beaesguerra","followers_url":"https://api.github.com/users/beaesguerra/followers","following_url":"https://api.github.com/users/beaesguerra/following{/other_user}","gists_url":"https://api.github.com/users/beaesguerra/gists{/gist_id}","starred_url":"https://api.github.com/users/beaesguerra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beaesguerra/subscriptions","organizations_url":"https://api.github.com/users/beaesguerra/orgs","repos_url":"https://api.github.com/users/beaesguerra/repos","events_url":"https://api.github.com/users/beaesguerra/events{/privacy}","received_events_url":"https://api.github.com/users/beaesguerra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beaesguerra/AgniMessenger","description":"","fork":false,"url":"https://api.github.com/repos/beaesguerra/AgniMessenger","forks_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/forks","keys_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/teams","hooks_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/hooks","issue_events_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues/events{/number}","events_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/events","assignees_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/assignees{/user}","branches_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/branches{/branch}","tags_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/tags","blobs_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/refs{/sha}","trees_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/statuses/{sha}","languages_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/languages","stargazers_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/stargazers","contributors_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/contributors","subscribers_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/subscribers","subscription_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/subscription","commits_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/commits{/sha}","git_commits_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/git/commits{/sha}","comments_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/comments{/number}","issue_comment_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues/comments{/number}","contents_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/contents/{+path}","compare_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/merges","archive_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/downloads","issues_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues{/number}","pulls_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls{/number}","milestones_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/milestones{/number}","notifications_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/labels{/name}","releases_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/releases{/id}","deployments_url":"https://api.github.com/repos/beaesguerra/AgniMessenger/deployments","created_at":"2016-03-04T02:53:15Z","updated_at":"2016-03-04T04:33:57Z","pushed_at":"2016-03-31T23:42:40Z","git_url":"git://github.com/beaesguerra/AgniMessenger.git","ssh_url":"git@github.com:beaesguerra/AgniMessenger.git","clone_url":"https://github.com/beaesguerra/AgniMessenger.git","svn_url":"https://github.com/beaesguerra/AgniMessenger","homepage":null,"size":4010,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":22,"forks":2,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/56"},"html":{"href":"https://github.com/beaesguerra/AgniMessenger/pull/56"},"issue":{"href":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues/56"},"comments":{"href":"https://api.github.com/repos/beaesguerra/AgniMessenger/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/beaesguerra/AgniMessenger/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/beaesguerra/AgniMessenger/statuses/326acaa5f004731e18d52ce1c261fd52443f9746"}}}}