{"action":"created","comment":{"url":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/comments/81706769","pull_request_review_id":2665697,"id":81706769,"diff_hunk":"@@ -0,0 +1,148 @@\n+#include <iostream>\n+#include <iomanip>\n+#include <chrono>\n+#include <thread>\n+#include <atomic>\n+#include <mutex>\n+#include <condition_variable>\n+#include <sys/types.h>\n+#include <sys/socket.h>\n+#include <netinet/in.h>\n+#include <netdb.h>\n+#include <unistd.h>\n+#include <string>\n+#include <arpa/inet.h>\n+#include <string.h>\n+#include <stdio.h>\n+#include <vector>\n+#include <sstream>\n+\n+// SYSTEM BUS RADIO\n+// https://github.com/fulldecent/system-bus-radio\n+// Copyright 2016 William Entriken\n+// C++11 port by Ryou Ezoe\n+// Wrapper C++ Server by Alberto Sanchez, Pedro J. Martinez, Jorge Rivera\n+\n+using namespace std;\n+\n+#define SERVER_PORT htons(50007)\n+\n+std::mutex m ;\n+std::condition_variable cv ;\n+std::chrono::high_resolution_clock::time_point mid ;\n+std::chrono::high_resolution_clock::time_point reset ;\n+\n+\n+void boost_song()\n+{\n+    using namespace std::chrono ;\n+\n+    while( true )\n+    {\n+        std::unique_lock<std::mutex> lk{m} ;\n+        cv.wait( lk ) ;\n+\n+        std::atomic<unsigned> x{0} ;\n+        while( high_resolution_clock::now() < mid )\n+        {\n+            ++x ;\n+        }\n+        std::this_thread::sleep_until( reset ) ;\n+    }\n+}\n+\n+void square_am_signal(float time, float frequency)\n+{\n+    using namespace std::chrono ;\n+\n+    std::cout << \"Playing / \" << time << \" seconds / \" << frequency << \" Hz\\n\" ;","path":"Sending custom msg morse-coded/main.cpp","position":58,"original_position":58,"commit_id":"9a488f14d2efb1c4f1aae71d21248b2c733dd7c8","original_commit_id":"9a488f14d2efb1c4f1aae71d21248b2c733dd7c8","user":{"login":"charliewu886","id":22397577,"avatar_url":"https://avatars.githubusercontent.com/u/22397577?v=3","gravatar_id":"","url":"https://api.github.com/users/charliewu886","html_url":"https://github.com/charliewu886","followers_url":"https://api.github.com/users/charliewu886/followers","following_url":"https://api.github.com/users/charliewu886/following{/other_user}","gists_url":"https://api.github.com/users/charliewu886/gists{/gist_id}","starred_url":"https://api.github.com/users/charliewu886/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charliewu886/subscriptions","organizations_url":"https://api.github.com/users/charliewu886/orgs","repos_url":"https://api.github.com/users/charliewu886/repos","events_url":"https://api.github.com/users/charliewu886/events{/privacy}","received_events_url":"https://api.github.com/users/charliewu886/received_events","type":"User","site_admin":false},"body":"Playing","created_at":"2016-10-04T08:23:00Z","updated_at":"2016-10-04T08:23:00Z","html_url":"https://github.com/fulldecent/system-bus-radio/pull/25#discussion_r81706769","pull_request_url":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/comments/81706769"},"html":{"href":"https://github.com/fulldecent/system-bus-radio/pull/25#discussion_r81706769"},"pull_request":{"href":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/25","id":62781569,"html_url":"https://github.com/fulldecent/system-bus-radio/pull/25","diff_url":"https://github.com/fulldecent/system-bus-radio/pull/25.diff","patch_url":"https://github.com/fulldecent/system-bus-radio/pull/25.patch","issue_url":"https://api.github.com/repos/fulldecent/system-bus-radio/issues/25","number":25,"state":"open","locked":false,"title":"Added morse related files","user":{"login":"ajsanchezsanz","id":3304408,"avatar_url":"https://avatars.githubusercontent.com/u/3304408?v=3","gravatar_id":"","url":"https://api.github.com/users/ajsanchezsanz","html_url":"https://github.com/ajsanchezsanz","followers_url":"https://api.github.com/users/ajsanchezsanz/followers","following_url":"https://api.github.com/users/ajsanchezsanz/following{/other_user}","gists_url":"https://api.github.com/users/ajsanchezsanz/gists{/gist_id}","starred_url":"https://api.github.com/users/ajsanchezsanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajsanchezsanz/subscriptions","organizations_url":"https://api.github.com/users/ajsanchezsanz/orgs","repos_url":"https://api.github.com/users/ajsanchezsanz/repos","events_url":"https://api.github.com/users/ajsanchezsanz/events{/privacy}","received_events_url":"https://api.github.com/users/ajsanchezsanz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-14T17:00:23Z","updated_at":"2016-10-04T08:28:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7599f91c8ca9ff80280b58f1a55bd94153dba030","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/25/commits","review_comments_url":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/25/comments","review_comment_url":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fulldecent/system-bus-radio/issues/25/comments","statuses_url":"https://api.github.com/repos/fulldecent/system-bus-radio/statuses/9a488f14d2efb1c4f1aae71d21248b2c733dd7c8","head":{"label":"ajsanchezsanz:Sending_morse-coded_messages","ref":"Sending_morse-coded_messages","sha":"9a488f14d2efb1c4f1aae71d21248b2c733dd7c8","user":{"login":"ajsanchezsanz","id":3304408,"avatar_url":"https://avatars.githubusercontent.com/u/3304408?v=3","gravatar_id":"","url":"https://api.github.com/users/ajsanchezsanz","html_url":"https://github.com/ajsanchezsanz","followers_url":"https://api.github.com/users/ajsanchezsanz/followers","following_url":"https://api.github.com/users/ajsanchezsanz/following{/other_user}","gists_url":"https://api.github.com/users/ajsanchezsanz/gists{/gist_id}","starred_url":"https://api.github.com/users/ajsanchezsanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajsanchezsanz/subscriptions","organizations_url":"https://api.github.com/users/ajsanchezsanz/orgs","repos_url":"https://api.github.com/users/ajsanchezsanz/repos","events_url":"https://api.github.com/users/ajsanchezsanz/events{/privacy}","received_events_url":"https://api.github.com/users/ajsanchezsanz/received_events","type":"User","site_admin":false},"repo":{"id":53874912,"name":"system-bus-radio","full_name":"ajsanchezsanz/system-bus-radio","owner":{"login":"ajsanchezsanz","id":3304408,"avatar_url":"https://avatars.githubusercontent.com/u/3304408?v=3","gravatar_id":"","url":"https://api.github.com/users/ajsanchezsanz","html_url":"https://github.com/ajsanchezsanz","followers_url":"https://api.github.com/users/ajsanchezsanz/followers","following_url":"https://api.github.com/users/ajsanchezsanz/following{/other_user}","gists_url":"https://api.github.com/users/ajsanchezsanz/gists{/gist_id}","starred_url":"https://api.github.com/users/ajsanchezsanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajsanchezsanz/subscriptions","organizations_url":"https://api.github.com/users/ajsanchezsanz/orgs","repos_url":"https://api.github.com/users/ajsanchezsanz/repos","events_url":"https://api.github.com/users/ajsanchezsanz/events{/privacy}","received_events_url":"https://api.github.com/users/ajsanchezsanz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajsanchezsanz/system-bus-radio","description":"This program transmits radio on computers without radio transmitting hardware.","fork":true,"url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio","forks_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/forks","keys_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/teams","hooks_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/hooks","issue_events_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/issues/events{/number}","events_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/events","assignees_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/assignees{/user}","branches_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/branches{/branch}","tags_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/tags","blobs_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/statuses/{sha}","languages_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/languages","stargazers_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/stargazers","contributors_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/contributors","subscribers_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/subscribers","subscription_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/subscription","commits_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/contents/{+path}","compare_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/merges","archive_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/downloads","issues_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/issues{/number}","pulls_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/pulls{/number}","milestones_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/milestones{/number}","notifications_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/labels{/name}","releases_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/releases{/id}","deployments_url":"https://api.github.com/repos/ajsanchezsanz/system-bus-radio/deployments","created_at":"2016-03-14T16:59:12Z","updated_at":"2016-03-14T16:59:14Z","pushed_at":"2016-03-14T17:00:00Z","git_url":"git://github.com/ajsanchezsanz/system-bus-radio.git","ssh_url":"git@github.com:ajsanchezsanz/system-bus-radio.git","clone_url":"https://github.com/ajsanchezsanz/system-bus-radio.git","svn_url":"https://github.com/ajsanchezsanz/system-bus-radio","homepage":null,"size":54,"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":"fulldecent:master","ref":"master","sha":"477c1749e344b6f33149ab196391547ae0a0a2db","user":{"login":"fulldecent","id":382183,"avatar_url":"https://avatars.githubusercontent.com/u/382183?v=3","gravatar_id":"","url":"https://api.github.com/users/fulldecent","html_url":"https://github.com/fulldecent","followers_url":"https://api.github.com/users/fulldecent/followers","following_url":"https://api.github.com/users/fulldecent/following{/other_user}","gists_url":"https://api.github.com/users/fulldecent/gists{/gist_id}","starred_url":"https://api.github.com/users/fulldecent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulldecent/subscriptions","organizations_url":"https://api.github.com/users/fulldecent/orgs","repos_url":"https://api.github.com/users/fulldecent/repos","events_url":"https://api.github.com/users/fulldecent/events{/privacy}","received_events_url":"https://api.github.com/users/fulldecent/received_events","type":"User","site_admin":false},"repo":{"id":52827329,"name":"system-bus-radio","full_name":"fulldecent/system-bus-radio","owner":{"login":"fulldecent","id":382183,"avatar_url":"https://avatars.githubusercontent.com/u/382183?v=3","gravatar_id":"","url":"https://api.github.com/users/fulldecent","html_url":"https://github.com/fulldecent","followers_url":"https://api.github.com/users/fulldecent/followers","following_url":"https://api.github.com/users/fulldecent/following{/other_user}","gists_url":"https://api.github.com/users/fulldecent/gists{/gist_id}","starred_url":"https://api.github.com/users/fulldecent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulldecent/subscriptions","organizations_url":"https://api.github.com/users/fulldecent/orgs","repos_url":"https://api.github.com/users/fulldecent/repos","events_url":"https://api.github.com/users/fulldecent/events{/privacy}","received_events_url":"https://api.github.com/users/fulldecent/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fulldecent/system-bus-radio","description":"This program transmits radio on computers without radio transmitting hardware.","fork":false,"url":"https://api.github.com/repos/fulldecent/system-bus-radio","forks_url":"https://api.github.com/repos/fulldecent/system-bus-radio/forks","keys_url":"https://api.github.com/repos/fulldecent/system-bus-radio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fulldecent/system-bus-radio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fulldecent/system-bus-radio/teams","hooks_url":"https://api.github.com/repos/fulldecent/system-bus-radio/hooks","issue_events_url":"https://api.github.com/repos/fulldecent/system-bus-radio/issues/events{/number}","events_url":"https://api.github.com/repos/fulldecent/system-bus-radio/events","assignees_url":"https://api.github.com/repos/fulldecent/system-bus-radio/assignees{/user}","branches_url":"https://api.github.com/repos/fulldecent/system-bus-radio/branches{/branch}","tags_url":"https://api.github.com/repos/fulldecent/system-bus-radio/tags","blobs_url":"https://api.github.com/repos/fulldecent/system-bus-radio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fulldecent/system-bus-radio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fulldecent/system-bus-radio/git/refs{/sha}","trees_url":"https://api.github.com/repos/fulldecent/system-bus-radio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fulldecent/system-bus-radio/statuses/{sha}","languages_url":"https://api.github.com/repos/fulldecent/system-bus-radio/languages","stargazers_url":"https://api.github.com/repos/fulldecent/system-bus-radio/stargazers","contributors_url":"https://api.github.com/repos/fulldecent/system-bus-radio/contributors","subscribers_url":"https://api.github.com/repos/fulldecent/system-bus-radio/subscribers","subscription_url":"https://api.github.com/repos/fulldecent/system-bus-radio/subscription","commits_url":"https://api.github.com/repos/fulldecent/system-bus-radio/commits{/sha}","git_commits_url":"https://api.github.com/repos/fulldecent/system-bus-radio/git/commits{/sha}","comments_url":"https://api.github.com/repos/fulldecent/system-bus-radio/comments{/number}","issue_comment_url":"https://api.github.com/repos/fulldecent/system-bus-radio/issues/comments{/number}","contents_url":"https://api.github.com/repos/fulldecent/system-bus-radio/contents/{+path}","compare_url":"https://api.github.com/repos/fulldecent/system-bus-radio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fulldecent/system-bus-radio/merges","archive_url":"https://api.github.com/repos/fulldecent/system-bus-radio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fulldecent/system-bus-radio/downloads","issues_url":"https://api.github.com/repos/fulldecent/system-bus-radio/issues{/number}","pulls_url":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls{/number}","milestones_url":"https://api.github.com/repos/fulldecent/system-bus-radio/milestones{/number}","notifications_url":"https://api.github.com/repos/fulldecent/system-bus-radio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fulldecent/system-bus-radio/labels{/name}","releases_url":"https://api.github.com/repos/fulldecent/system-bus-radio/releases{/id}","deployments_url":"https://api.github.com/repos/fulldecent/system-bus-radio/deployments","created_at":"2016-02-29T21:48:56Z","updated_at":"2016-10-04T08:16:29Z","pushed_at":"2016-09-06T17:43:37Z","git_url":"git://github.com/fulldecent/system-bus-radio.git","ssh_url":"git@github.com:fulldecent/system-bus-radio.git","clone_url":"https://github.com/fulldecent/system-bus-radio.git","svn_url":"https://github.com/fulldecent/system-bus-radio","homepage":null,"size":81,"stargazers_count":2874,"watchers_count":2874,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":260,"mirror_url":null,"open_issues_count":4,"forks":260,"open_issues":4,"watchers":2874,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/25"},"html":{"href":"https://github.com/fulldecent/system-bus-radio/pull/25"},"issue":{"href":"https://api.github.com/repos/fulldecent/system-bus-radio/issues/25"},"comments":{"href":"https://api.github.com/repos/fulldecent/system-bus-radio/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fulldecent/system-bus-radio/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/fulldecent/system-bus-radio/statuses/9a488f14d2efb1c4f1aae71d21248b2c733dd7c8"}}}}
{"actor":{"display_login":"charliewu886"}}