{"action":"created","comment":{"url":"https://api.github.com/repos/oxnz/RTFSC/pulls/comments/88194513","pull_request_review_id":8772017,"id":88194513,"diff_hunk":"@@ -0,0 +1,80 @@\n+#include <stdio.h>\n+#include <sys/socket.h>\n+#include <string.h>\n+#include <sys/types.h>\n+#include <netinet/in.h>\n+#include <unistd.h>\n+\n+#include \"../service.h\"\n+\n+int BUFFER_SIZE = 1024;\n+\n+void process_request(int client_sk, struct sockaddr_in client_addr)\n+{\n+    char recv_buffer[BUFFER_SIZE], send_buffer[BUFFER_SIZE];\n+    while(1)\n+    {\n+        memset(recv_buffer, '\\0', sizeof(recv_buffer));\n+        int len = recv(client_sk, recv_buffer, sizeof(recv_buffer), 0);","path":"exp/net/tcp/tcpsvr.c","position":18,"original_position":18,"commit_id":"3d88cf9b51c4f82937d9e584a2d33be53cc50fac","original_commit_id":"3d88cf9b51c4f82937d9e584a2d33be53cc50fac","user":{"login":"oxnz","id":1438665,"avatar_url":"https://avatars.githubusercontent.com/u/1438665?v=3","gravatar_id":"","url":"https://api.github.com/users/oxnz","html_url":"https://github.com/oxnz","followers_url":"https://api.github.com/users/oxnz/followers","following_url":"https://api.github.com/users/oxnz/following{/other_user}","gists_url":"https://api.github.com/users/oxnz/gists{/gist_id}","starred_url":"https://api.github.com/users/oxnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxnz/subscriptions","organizations_url":"https://api.github.com/users/oxnz/orgs","repos_url":"https://api.github.com/users/oxnz/repos","events_url":"https://api.github.com/users/oxnz/events{/privacy}","received_events_url":"https://api.github.com/users/oxnz/received_events","type":"User","site_admin":false},"body":"不要使用recv 和send，使用read/write, 返回值类型不对","created_at":"2016-11-16T09:08:08Z","updated_at":"2016-11-16T09:14:52Z","html_url":"https://github.com/oxnz/RTFSC/pull/4#discussion_r88194513","pull_request_url":"https://api.github.com/repos/oxnz/RTFSC/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/oxnz/RTFSC/pulls/comments/88194513"},"html":{"href":"https://github.com/oxnz/RTFSC/pull/4#discussion_r88194513"},"pull_request":{"href":"https://api.github.com/repos/oxnz/RTFSC/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/oxnz/RTFSC/pulls/4","id":93923763,"html_url":"https://github.com/oxnz/RTFSC/pull/4","diff_url":"https://github.com/oxnz/RTFSC/pull/4.diff","patch_url":"https://github.com/oxnz/RTFSC/pull/4.patch","issue_url":"https://api.github.com/repos/oxnz/RTFSC/issues/4","number":4,"state":"open","locked":false,"title":"add tcpsvr","user":{"login":"pslzym","id":13902894,"avatar_url":"https://avatars.githubusercontent.com/u/13902894?v=3","gravatar_id":"","url":"https://api.github.com/users/pslzym","html_url":"https://github.com/pslzym","followers_url":"https://api.github.com/users/pslzym/followers","following_url":"https://api.github.com/users/pslzym/following{/other_user}","gists_url":"https://api.github.com/users/pslzym/gists{/gist_id}","starred_url":"https://api.github.com/users/pslzym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pslzym/subscriptions","organizations_url":"https://api.github.com/users/pslzym/orgs","repos_url":"https://api.github.com/users/pslzym/repos","events_url":"https://api.github.com/users/pslzym/events{/privacy}","received_events_url":"https://api.github.com/users/pslzym/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-16T08:50:29Z","updated_at":"2016-11-16T09:14:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c1983335926a5328ecaf70be5df4571de83798c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/oxnz/RTFSC/pulls/4/commits","review_comments_url":"https://api.github.com/repos/oxnz/RTFSC/pulls/4/comments","review_comment_url":"https://api.github.com/repos/oxnz/RTFSC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oxnz/RTFSC/issues/4/comments","statuses_url":"https://api.github.com/repos/oxnz/RTFSC/statuses/3d88cf9b51c4f82937d9e584a2d33be53cc50fac","head":{"label":"pslzym:master","ref":"master","sha":"3d88cf9b51c4f82937d9e584a2d33be53cc50fac","user":{"login":"pslzym","id":13902894,"avatar_url":"https://avatars.githubusercontent.com/u/13902894?v=3","gravatar_id":"","url":"https://api.github.com/users/pslzym","html_url":"https://github.com/pslzym","followers_url":"https://api.github.com/users/pslzym/followers","following_url":"https://api.github.com/users/pslzym/following{/other_user}","gists_url":"https://api.github.com/users/pslzym/gists{/gist_id}","starred_url":"https://api.github.com/users/pslzym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pslzym/subscriptions","organizations_url":"https://api.github.com/users/pslzym/orgs","repos_url":"https://api.github.com/users/pslzym/repos","events_url":"https://api.github.com/users/pslzym/events{/privacy}","received_events_url":"https://api.github.com/users/pslzym/received_events","type":"User","site_admin":false},"repo":{"id":73885454,"name":"RTFSC","full_name":"pslzym/RTFSC","owner":{"login":"pslzym","id":13902894,"avatar_url":"https://avatars.githubusercontent.com/u/13902894?v=3","gravatar_id":"","url":"https://api.github.com/users/pslzym","html_url":"https://github.com/pslzym","followers_url":"https://api.github.com/users/pslzym/followers","following_url":"https://api.github.com/users/pslzym/following{/other_user}","gists_url":"https://api.github.com/users/pslzym/gists{/gist_id}","starred_url":"https://api.github.com/users/pslzym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pslzym/subscriptions","organizations_url":"https://api.github.com/users/pslzym/orgs","repos_url":"https://api.github.com/users/pslzym/repos","events_url":"https://api.github.com/users/pslzym/events{/privacy}","received_events_url":"https://api.github.com/users/pslzym/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pslzym/RTFSC","description":"Read The Forking Source Code","fork":true,"url":"https://api.github.com/repos/pslzym/RTFSC","forks_url":"https://api.github.com/repos/pslzym/RTFSC/forks","keys_url":"https://api.github.com/repos/pslzym/RTFSC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pslzym/RTFSC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pslzym/RTFSC/teams","hooks_url":"https://api.github.com/repos/pslzym/RTFSC/hooks","issue_events_url":"https://api.github.com/repos/pslzym/RTFSC/issues/events{/number}","events_url":"https://api.github.com/repos/pslzym/RTFSC/events","assignees_url":"https://api.github.com/repos/pslzym/RTFSC/assignees{/user}","branches_url":"https://api.github.com/repos/pslzym/RTFSC/branches{/branch}","tags_url":"https://api.github.com/repos/pslzym/RTFSC/tags","blobs_url":"https://api.github.com/repos/pslzym/RTFSC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pslzym/RTFSC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pslzym/RTFSC/git/refs{/sha}","trees_url":"https://api.github.com/repos/pslzym/RTFSC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pslzym/RTFSC/statuses/{sha}","languages_url":"https://api.github.com/repos/pslzym/RTFSC/languages","stargazers_url":"https://api.github.com/repos/pslzym/RTFSC/stargazers","contributors_url":"https://api.github.com/repos/pslzym/RTFSC/contributors","subscribers_url":"https://api.github.com/repos/pslzym/RTFSC/subscribers","subscription_url":"https://api.github.com/repos/pslzym/RTFSC/subscription","commits_url":"https://api.github.com/repos/pslzym/RTFSC/commits{/sha}","git_commits_url":"https://api.github.com/repos/pslzym/RTFSC/git/commits{/sha}","comments_url":"https://api.github.com/repos/pslzym/RTFSC/comments{/number}","issue_comment_url":"https://api.github.com/repos/pslzym/RTFSC/issues/comments{/number}","contents_url":"https://api.github.com/repos/pslzym/RTFSC/contents/{+path}","compare_url":"https://api.github.com/repos/pslzym/RTFSC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pslzym/RTFSC/merges","archive_url":"https://api.github.com/repos/pslzym/RTFSC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pslzym/RTFSC/downloads","issues_url":"https://api.github.com/repos/pslzym/RTFSC/issues{/number}","pulls_url":"https://api.github.com/repos/pslzym/RTFSC/pulls{/number}","milestones_url":"https://api.github.com/repos/pslzym/RTFSC/milestones{/number}","notifications_url":"https://api.github.com/repos/pslzym/RTFSC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pslzym/RTFSC/labels{/name}","releases_url":"https://api.github.com/repos/pslzym/RTFSC/releases{/id}","deployments_url":"https://api.github.com/repos/pslzym/RTFSC/deployments","created_at":"2016-11-16T04:55:37Z","updated_at":"2016-11-16T04:55:38Z","pushed_at":"2016-11-16T08:49:33Z","git_url":"git://github.com/pslzym/RTFSC.git","ssh_url":"git@github.com:pslzym/RTFSC.git","clone_url":"https://github.com/pslzym/RTFSC.git","svn_url":"https://github.com/pslzym/RTFSC","homepage":"","size":66,"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":"oxnz:master","ref":"master","sha":"baffa895f23a6b795a04609017b3c85eb6809cdc","user":{"login":"oxnz","id":1438665,"avatar_url":"https://avatars.githubusercontent.com/u/1438665?v=3","gravatar_id":"","url":"https://api.github.com/users/oxnz","html_url":"https://github.com/oxnz","followers_url":"https://api.github.com/users/oxnz/followers","following_url":"https://api.github.com/users/oxnz/following{/other_user}","gists_url":"https://api.github.com/users/oxnz/gists{/gist_id}","starred_url":"https://api.github.com/users/oxnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxnz/subscriptions","organizations_url":"https://api.github.com/users/oxnz/orgs","repos_url":"https://api.github.com/users/oxnz/repos","events_url":"https://api.github.com/users/oxnz/events{/privacy}","received_events_url":"https://api.github.com/users/oxnz/received_events","type":"User","site_admin":false},"repo":{"id":41913411,"name":"RTFSC","full_name":"oxnz/RTFSC","owner":{"login":"oxnz","id":1438665,"avatar_url":"https://avatars.githubusercontent.com/u/1438665?v=3","gravatar_id":"","url":"https://api.github.com/users/oxnz","html_url":"https://github.com/oxnz","followers_url":"https://api.github.com/users/oxnz/followers","following_url":"https://api.github.com/users/oxnz/following{/other_user}","gists_url":"https://api.github.com/users/oxnz/gists{/gist_id}","starred_url":"https://api.github.com/users/oxnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxnz/subscriptions","organizations_url":"https://api.github.com/users/oxnz/orgs","repos_url":"https://api.github.com/users/oxnz/repos","events_url":"https://api.github.com/users/oxnz/events{/privacy}","received_events_url":"https://api.github.com/users/oxnz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oxnz/RTFSC","description":"Read The Forking Source Code","fork":false,"url":"https://api.github.com/repos/oxnz/RTFSC","forks_url":"https://api.github.com/repos/oxnz/RTFSC/forks","keys_url":"https://api.github.com/repos/oxnz/RTFSC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oxnz/RTFSC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oxnz/RTFSC/teams","hooks_url":"https://api.github.com/repos/oxnz/RTFSC/hooks","issue_events_url":"https://api.github.com/repos/oxnz/RTFSC/issues/events{/number}","events_url":"https://api.github.com/repos/oxnz/RTFSC/events","assignees_url":"https://api.github.com/repos/oxnz/RTFSC/assignees{/user}","branches_url":"https://api.github.com/repos/oxnz/RTFSC/branches{/branch}","tags_url":"https://api.github.com/repos/oxnz/RTFSC/tags","blobs_url":"https://api.github.com/repos/oxnz/RTFSC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oxnz/RTFSC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oxnz/RTFSC/git/refs{/sha}","trees_url":"https://api.github.com/repos/oxnz/RTFSC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oxnz/RTFSC/statuses/{sha}","languages_url":"https://api.github.com/repos/oxnz/RTFSC/languages","stargazers_url":"https://api.github.com/repos/oxnz/RTFSC/stargazers","contributors_url":"https://api.github.com/repos/oxnz/RTFSC/contributors","subscribers_url":"https://api.github.com/repos/oxnz/RTFSC/subscribers","subscription_url":"https://api.github.com/repos/oxnz/RTFSC/subscription","commits_url":"https://api.github.com/repos/oxnz/RTFSC/commits{/sha}","git_commits_url":"https://api.github.com/repos/oxnz/RTFSC/git/commits{/sha}","comments_url":"https://api.github.com/repos/oxnz/RTFSC/comments{/number}","issue_comment_url":"https://api.github.com/repos/oxnz/RTFSC/issues/comments{/number}","contents_url":"https://api.github.com/repos/oxnz/RTFSC/contents/{+path}","compare_url":"https://api.github.com/repos/oxnz/RTFSC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oxnz/RTFSC/merges","archive_url":"https://api.github.com/repos/oxnz/RTFSC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oxnz/RTFSC/downloads","issues_url":"https://api.github.com/repos/oxnz/RTFSC/issues{/number}","pulls_url":"https://api.github.com/repos/oxnz/RTFSC/pulls{/number}","milestones_url":"https://api.github.com/repos/oxnz/RTFSC/milestones{/number}","notifications_url":"https://api.github.com/repos/oxnz/RTFSC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oxnz/RTFSC/labels{/name}","releases_url":"https://api.github.com/repos/oxnz/RTFSC/releases{/id}","deployments_url":"https://api.github.com/repos/oxnz/RTFSC/deployments","created_at":"2015-09-04T11:59:37Z","updated_at":"2016-11-16T05:04:13Z","pushed_at":"2016-11-16T08:50:29Z","git_url":"git://github.com/oxnz/RTFSC.git","ssh_url":"git@github.com:oxnz/RTFSC.git","clone_url":"https://github.com/oxnz/RTFSC.git","svn_url":"https://github.com/oxnz/RTFSC","homepage":"","size":66,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oxnz/RTFSC/pulls/4"},"html":{"href":"https://github.com/oxnz/RTFSC/pull/4"},"issue":{"href":"https://api.github.com/repos/oxnz/RTFSC/issues/4"},"comments":{"href":"https://api.github.com/repos/oxnz/RTFSC/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/oxnz/RTFSC/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/oxnz/RTFSC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oxnz/RTFSC/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/oxnz/RTFSC/statuses/3d88cf9b51c4f82937d9e584a2d33be53cc50fac"}}}}
{"actor":{"display_login":"oxnz"}}