{"action":"closed","number":2665,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2665","id":84806299,"html_url":"https://github.com/ARMmbed/mbed-os/pull/2665","diff_url":"https://github.com/ARMmbed/mbed-os/pull/2665.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/2665.patch","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2665","number":2665,"state":"closed","locked":false,"title":"nsapi - Add equality operators to SocketAddress class","user":{"login":"geky","id":1075160,"avatar_url":"https://avatars.githubusercontent.com/u/1075160?v=3","gravatar_id":"","url":"https://api.github.com/users/geky","html_url":"https://github.com/geky","followers_url":"https://api.github.com/users/geky/followers","following_url":"https://api.github.com/users/geky/following{/other_user}","gists_url":"https://api.github.com/users/geky/gists{/gist_id}","starred_url":"https://api.github.com/users/geky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geky/subscriptions","organizations_url":"https://api.github.com/users/geky/orgs","repos_url":"https://api.github.com/users/geky/repos","events_url":"https://api.github.com/users/geky/events{/privacy}","received_events_url":"https://api.github.com/users/geky/received_events","type":"User","site_admin":false},"body":"Add equality operators to the network-socket API Socket Address class:\r\n``` cpp\r\nbool operator==(const SocketAddress &a, const SocketAddress &b);\r\nbool operator!=(const SocketAddress &a, const SocketAddress &b);\r\n```\r\n\r\nThis is especially useful for checking udp packets to be from the correct sender:\r\n``` cpp\r\nUDPSocket server(&iface);\r\nSocketAddress client_address;\r\n\r\nint err = server->recvfrom(&client_address, packet, sizeof packet);\r\nif (err || client_address !=expected_client_address) {\r\n    error(\"oh no!\");\r\n}\r\n```\r\n\r\ncc @c1728p9 ","created_at":"2016-09-12T01:52:15Z","updated_at":"2016-09-16T22:28:01Z","closed_at":"2016-09-16T22:28:01Z","merged_at":"2016-09-16T22:28:01Z","merge_commit_sha":"6bfcb3cff027fcb311e2074dd306a2ba3882f603","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2665/commits","review_comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2665/comments","review_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2665/comments","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/e3037ef7b06a8248c49e78e01d3f44e2c7e31dd5","head":{"label":"geky:nsapi-socketaddress-equality","ref":"nsapi-socketaddress-equality","sha":"e3037ef7b06a8248c49e78e01d3f44e2c7e31dd5","user":{"login":"geky","id":1075160,"avatar_url":"https://avatars.githubusercontent.com/u/1075160?v=3","gravatar_id":"","url":"https://api.github.com/users/geky","html_url":"https://github.com/geky","followers_url":"https://api.github.com/users/geky/followers","following_url":"https://api.github.com/users/geky/following{/other_user}","gists_url":"https://api.github.com/users/geky/gists{/gist_id}","starred_url":"https://api.github.com/users/geky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geky/subscriptions","organizations_url":"https://api.github.com/users/geky/orgs","repos_url":"https://api.github.com/users/geky/repos","events_url":"https://api.github.com/users/geky/events{/privacy}","received_events_url":"https://api.github.com/users/geky/received_events","type":"User","site_admin":false},"repo":{"id":59693534,"name":"mbed","full_name":"geky/mbed","owner":{"login":"geky","id":1075160,"avatar_url":"https://avatars.githubusercontent.com/u/1075160?v=3","gravatar_id":"","url":"https://api.github.com/users/geky","html_url":"https://github.com/geky","followers_url":"https://api.github.com/users/geky/followers","following_url":"https://api.github.com/users/geky/following{/other_user}","gists_url":"https://api.github.com/users/geky/gists{/gist_id}","starred_url":"https://api.github.com/users/geky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geky/subscriptions","organizations_url":"https://api.github.com/users/geky/orgs","repos_url":"https://api.github.com/users/geky/repos","events_url":"https://api.github.com/users/geky/events{/privacy}","received_events_url":"https://api.github.com/users/geky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geky/mbed","description":"mbed libraries and tools (Classic). For mbed OS, look here: https://www.mbed.com/en/development/software/mbed-os/","fork":true,"url":"https://api.github.com/repos/geky/mbed","forks_url":"https://api.github.com/repos/geky/mbed/forks","keys_url":"https://api.github.com/repos/geky/mbed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geky/mbed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geky/mbed/teams","hooks_url":"https://api.github.com/repos/geky/mbed/hooks","issue_events_url":"https://api.github.com/repos/geky/mbed/issues/events{/number}","events_url":"https://api.github.com/repos/geky/mbed/events","assignees_url":"https://api.github.com/repos/geky/mbed/assignees{/user}","branches_url":"https://api.github.com/repos/geky/mbed/branches{/branch}","tags_url":"https://api.github.com/repos/geky/mbed/tags","blobs_url":"https://api.github.com/repos/geky/mbed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geky/mbed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geky/mbed/git/refs{/sha}","trees_url":"https://api.github.com/repos/geky/mbed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geky/mbed/statuses/{sha}","languages_url":"https://api.github.com/repos/geky/mbed/languages","stargazers_url":"https://api.github.com/repos/geky/mbed/stargazers","contributors_url":"https://api.github.com/repos/geky/mbed/contributors","subscribers_url":"https://api.github.com/repos/geky/mbed/subscribers","subscription_url":"https://api.github.com/repos/geky/mbed/subscription","commits_url":"https://api.github.com/repos/geky/mbed/commits{/sha}","git_commits_url":"https://api.github.com/repos/geky/mbed/git/commits{/sha}","comments_url":"https://api.github.com/repos/geky/mbed/comments{/number}","issue_comment_url":"https://api.github.com/repos/geky/mbed/issues/comments{/number}","contents_url":"https://api.github.com/repos/geky/mbed/contents/{+path}","compare_url":"https://api.github.com/repos/geky/mbed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geky/mbed/merges","archive_url":"https://api.github.com/repos/geky/mbed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geky/mbed/downloads","issues_url":"https://api.github.com/repos/geky/mbed/issues{/number}","pulls_url":"https://api.github.com/repos/geky/mbed/pulls{/number}","milestones_url":"https://api.github.com/repos/geky/mbed/milestones{/number}","notifications_url":"https://api.github.com/repos/geky/mbed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geky/mbed/labels{/name}","releases_url":"https://api.github.com/repos/geky/mbed/releases{/id}","deployments_url":"https://api.github.com/repos/geky/mbed/deployments","created_at":"2016-05-25T19:59:10Z","updated_at":"2016-05-25T20:00:07Z","pushed_at":"2016-09-15T20:21:10Z","git_url":"git://github.com/geky/mbed.git","ssh_url":"git@github.com:geky/mbed.git","clone_url":"https://github.com/geky/mbed.git","svn_url":"https://github.com/geky/mbed","homepage":"","size":64121,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ARMmbed:master","ref":"master","sha":"e9d0fbd178332a681d37568c4ae8d4737cb6419a","user":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars.githubusercontent.com/u/8916057?v=3","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"repo":{"id":8270972,"name":"mbed-os","full_name":"ARMmbed/mbed-os","owner":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars.githubusercontent.com/u/8916057?v=3","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARMmbed/mbed-os","description":"ARM mbed OS is a platform operating system designed for the internet of things","fork":false,"url":"https://api.github.com/repos/ARMmbed/mbed-os","forks_url":"https://api.github.com/repos/ARMmbed/mbed-os/forks","keys_url":"https://api.github.com/repos/ARMmbed/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARMmbed/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARMmbed/mbed-os/teams","hooks_url":"https://api.github.com/repos/ARMmbed/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/events","assignees_url":"https://api.github.com/repos/ARMmbed/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/ARMmbed/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/tags","blobs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/ARMmbed/mbed-os/languages","stargazers_url":"https://api.github.com/repos/ARMmbed/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/ARMmbed/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscription","commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARMmbed/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/ARMmbed/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARMmbed/mbed-os/merges","archive_url":"https://api.github.com/repos/ARMmbed/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARMmbed/mbed-os/downloads","issues_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/ARMmbed/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/ARMmbed/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/ARMmbed/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/ARMmbed/mbed-os/deployments","created_at":"2013-02-18T15:23:11Z","updated_at":"2016-09-16T01:02:22Z","pushed_at":"2016-09-16T22:28:01Z","git_url":"git://github.com/ARMmbed/mbed-os.git","ssh_url":"git@github.com:ARMmbed/mbed-os.git","clone_url":"https://github.com/ARMmbed/mbed-os.git","svn_url":"https://github.com/ARMmbed/mbed-os","homepage":"https://mbed.com","size":76836,"stargazers_count":741,"watchers_count":741,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":740,"mirror_url":null,"open_issues_count":382,"forks":740,"open_issues":382,"watchers":741,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2665"},"html":{"href":"https://github.com/ARMmbed/mbed-os/pull/2665"},"issue":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2665"},"comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2665/comments"},"review_comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2665/comments"},"review_comment":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2665/commits"},"statuses":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/e3037ef7b06a8248c49e78e01d3f44e2c7e31dd5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sg-","id":496002,"avatar_url":"https://avatars.githubusercontent.com/u/496002?v=3","gravatar_id":"","url":"https://api.github.com/users/sg-","html_url":"https://github.com/sg-","followers_url":"https://api.github.com/users/sg-/followers","following_url":"https://api.github.com/users/sg-/following{/other_user}","gists_url":"https://api.github.com/users/sg-/gists{/gist_id}","starred_url":"https://api.github.com/users/sg-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sg-/subscriptions","organizations_url":"https://api.github.com/users/sg-/orgs","repos_url":"https://api.github.com/users/sg-/repos","events_url":"https://api.github.com/users/sg-/events{/privacy}","received_events_url":"https://api.github.com/users/sg-/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":31,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"sg-"}}