{"action":"created","comment":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/158770744","pull_request_review_id":85624581,"id":158770744,"diff_hunk":"@@ -807,6 +872,8 @@ int nettest_main(int argc, char *argv[])\n \t\t\ttcp_server_thread(num_packets_to_process);\n \t\t} else if (proto == NT_UDP) {\n \t\t\tudp_server_thread(num_packets_to_process);\n+\t\t} else if (proto == NT_BROADCAST) {","path":"apps/examples/nettest/nettest.c","position":76,"original_position":76,"commit_id":"ac759029b02109f3baa352ed154f9dc7c4bc1531","original_commit_id":"ac759029b02109f3baa352ed154f9dc7c4bc1531","user":{"login":"Taejun-Kwon","id":25811447,"avatar_url":"https://avatars1.githubusercontent.com/u/25811447?v=4","gravatar_id":"","url":"https://api.github.com/users/Taejun-Kwon","html_url":"https://github.com/Taejun-Kwon","followers_url":"https://api.github.com/users/Taejun-Kwon/followers","following_url":"https://api.github.com/users/Taejun-Kwon/following{/other_user}","gists_url":"https://api.github.com/users/Taejun-Kwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Taejun-Kwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taejun-Kwon/subscriptions","organizations_url":"https://api.github.com/users/Taejun-Kwon/orgs","repos_url":"https://api.github.com/users/Taejun-Kwon/repos","events_url":"https://api.github.com/users/Taejun-Kwon/events{/privacy}","received_events_url":"https://api.github.com/users/Taejun-Kwon/received_events","type":"User","site_admin":false},"body":"Currently branches here is very simple but you had better use switch-case if there are more than 2 else if \r\nIt is good habit. Also you already check mode above, below else if(mode == NETTEST_CLIENT_MODE) can be changed just else.","created_at":"2017-12-27T07:04:48Z","updated_at":"2017-12-27T07:04:48Z","html_url":"https://github.com/Samsung/TizenRT/pull/1154#discussion_r158770744","pull_request_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/1154","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/158770744"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/1154#discussion_r158770744"},"pull_request":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/1154"}}},"pull_request":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/1154","id":160183999,"html_url":"https://github.com/Samsung/TizenRT/pull/1154","diff_url":"https://github.com/Samsung/TizenRT/pull/1154.diff","patch_url":"https://github.com/Samsung/TizenRT/pull/1154.patch","issue_url":"https://api.github.com/repos/Samsung/TizenRT/issues/1154","number":1154,"state":"open","locked":false,"title":"example/nettest: add receive broadcast example","user":{"login":"jeongarmy","id":16572419,"avatar_url":"https://avatars3.githubusercontent.com/u/16572419?v=4","gravatar_id":"","url":"https://api.github.com/users/jeongarmy","html_url":"https://github.com/jeongarmy","followers_url":"https://api.github.com/users/jeongarmy/followers","following_url":"https://api.github.com/users/jeongarmy/following{/other_user}","gists_url":"https://api.github.com/users/jeongarmy/gists{/gist_id}","starred_url":"https://api.github.com/users/jeongarmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeongarmy/subscriptions","organizations_url":"https://api.github.com/users/jeongarmy/orgs","repos_url":"https://api.github.com/users/jeongarmy/repos","events_url":"https://api.github.com/users/jeongarmy/events{/privacy}","received_events_url":"https://api.github.com/users/jeongarmy/received_events","type":"User","site_admin":false},"body":"add new example for showing how to receive broadcast data","created_at":"2017-12-27T02:11:19Z","updated_at":"2017-12-27T07:04:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fa43c2b233a5ff8a5ce2c4047258f06795bb59b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/1154/commits","review_comments_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/1154/comments","review_comment_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/issues/1154/comments","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/ac759029b02109f3baa352ed154f9dc7c4bc1531","head":{"label":"jeongarmy:nettest_broadcast_receive","ref":"nettest_broadcast_receive","sha":"ac759029b02109f3baa352ed154f9dc7c4bc1531","user":{"login":"jeongarmy","id":16572419,"avatar_url":"https://avatars3.githubusercontent.com/u/16572419?v=4","gravatar_id":"","url":"https://api.github.com/users/jeongarmy","html_url":"https://github.com/jeongarmy","followers_url":"https://api.github.com/users/jeongarmy/followers","following_url":"https://api.github.com/users/jeongarmy/following{/other_user}","gists_url":"https://api.github.com/users/jeongarmy/gists{/gist_id}","starred_url":"https://api.github.com/users/jeongarmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeongarmy/subscriptions","organizations_url":"https://api.github.com/users/jeongarmy/orgs","repos_url":"https://api.github.com/users/jeongarmy/repos","events_url":"https://api.github.com/users/jeongarmy/events{/privacy}","received_events_url":"https://api.github.com/users/jeongarmy/received_events","type":"User","site_admin":false},"repo":{"id":91749538,"name":"TizenRT","full_name":"jeongarmy/TizenRT","owner":{"login":"jeongarmy","id":16572419,"avatar_url":"https://avatars3.githubusercontent.com/u/16572419?v=4","gravatar_id":"","url":"https://api.github.com/users/jeongarmy","html_url":"https://github.com/jeongarmy","followers_url":"https://api.github.com/users/jeongarmy/followers","following_url":"https://api.github.com/users/jeongarmy/following{/other_user}","gists_url":"https://api.github.com/users/jeongarmy/gists{/gist_id}","starred_url":"https://api.github.com/users/jeongarmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeongarmy/subscriptions","organizations_url":"https://api.github.com/users/jeongarmy/orgs","repos_url":"https://api.github.com/users/jeongarmy/repos","events_url":"https://api.github.com/users/jeongarmy/events{/privacy}","received_events_url":"https://api.github.com/users/jeongarmy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeongarmy/TizenRT","description":"Tizen RT is a lightweight RTOS-based platform to support low-end IoT devices","fork":true,"url":"https://api.github.com/repos/jeongarmy/TizenRT","forks_url":"https://api.github.com/repos/jeongarmy/TizenRT/forks","keys_url":"https://api.github.com/repos/jeongarmy/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeongarmy/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeongarmy/TizenRT/teams","hooks_url":"https://api.github.com/repos/jeongarmy/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/jeongarmy/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/jeongarmy/TizenRT/events","assignees_url":"https://api.github.com/repos/jeongarmy/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/jeongarmy/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/jeongarmy/TizenRT/tags","blobs_url":"https://api.github.com/repos/jeongarmy/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeongarmy/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeongarmy/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeongarmy/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeongarmy/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/jeongarmy/TizenRT/languages","stargazers_url":"https://api.github.com/repos/jeongarmy/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/jeongarmy/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/jeongarmy/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/jeongarmy/TizenRT/subscription","commits_url":"https://api.github.com/repos/jeongarmy/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeongarmy/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeongarmy/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeongarmy/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeongarmy/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/jeongarmy/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeongarmy/TizenRT/merges","archive_url":"https://api.github.com/repos/jeongarmy/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeongarmy/TizenRT/downloads","issues_url":"https://api.github.com/repos/jeongarmy/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/jeongarmy/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/jeongarmy/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/jeongarmy/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeongarmy/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/jeongarmy/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/jeongarmy/TizenRT/deployments","created_at":"2017-05-19T00:34:49Z","updated_at":"2017-05-19T00:35:05Z","pushed_at":"2017-12-27T02:10:58Z","git_url":"git://github.com/jeongarmy/TizenRT.git","ssh_url":"git@github.com:jeongarmy/TizenRT.git","clone_url":"https://github.com/jeongarmy/TizenRT.git","svn_url":"https://github.com/jeongarmy/TizenRT","homepage":"","size":83018,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Samsung:master","ref":"master","sha":"b1f2bab60466ccf53bef86587845f3d2f87f995d","user":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":82517252,"name":"TizenRT","full_name":"Samsung/TizenRT","owner":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Samsung/TizenRT","description":"Tizen RT is a lightweight RTOS-based platform to support low-end IoT devices","fork":false,"url":"https://api.github.com/repos/Samsung/TizenRT","forks_url":"https://api.github.com/repos/Samsung/TizenRT/forks","keys_url":"https://api.github.com/repos/Samsung/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/TizenRT/teams","hooks_url":"https://api.github.com/repos/Samsung/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/Samsung/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/TizenRT/events","assignees_url":"https://api.github.com/repos/Samsung/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/TizenRT/tags","blobs_url":"https://api.github.com/repos/Samsung/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/TizenRT/languages","stargazers_url":"https://api.github.com/repos/Samsung/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/Samsung/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/Samsung/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/Samsung/TizenRT/subscription","commits_url":"https://api.github.com/repos/Samsung/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/TizenRT/merges","archive_url":"https://api.github.com/repos/Samsung/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/TizenRT/downloads","issues_url":"https://api.github.com/repos/Samsung/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/Samsung/TizenRT/deployments","created_at":"2017-02-20T04:38:30Z","updated_at":"2017-12-24T17:10:05Z","pushed_at":"2017-12-27T06:42:07Z","git_url":"git://github.com/Samsung/TizenRT.git","ssh_url":"git@github.com:Samsung/TizenRT.git","clone_url":"https://github.com/Samsung/TizenRT.git","svn_url":"https://github.com/Samsung/TizenRT","homepage":"","size":83018,"stargazers_count":107,"watchers_count":107,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":136,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":136,"open_issues":35,"watchers":107,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/1154"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/1154"},"issue":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/1154"},"comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/1154/comments"},"review_comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/1154/comments"},"review_comment":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/1154/commits"},"statuses":{"href":"https://api.github.com/repos/Samsung/TizenRT/statuses/ac759029b02109f3baa352ed154f9dc7c4bc1531"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Taejun-Kwon"}}