{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/luainkernel/lunatik/pulls/4","id":190488885,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNDg4ODg1","html_url":"https://github.com/luainkernel/lunatik/pull/4","diff_url":"https://github.com/luainkernel/lunatik/pull/4.diff","patch_url":"https://github.com/luainkernel/lunatik/pull/4.patch","issue_url":"https://api.github.com/repos/luainkernel/lunatik/issues/4","number":4,"state":"closed","locked":false,"title":"Luasocket (05/14/2018 - 05/24/2018)","user":{"login":"tcz717","id":3594312,"node_id":"MDQ6VXNlcjM1OTQzMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3594312?v=4","gravatar_id":"","url":"https://api.github.com/users/tcz717","html_url":"https://github.com/tcz717","followers_url":"https://api.github.com/users/tcz717/followers","following_url":"https://api.github.com/users/tcz717/following{/other_user}","gists_url":"https://api.github.com/users/tcz717/gists{/gist_id}","starred_url":"https://api.github.com/users/tcz717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcz717/subscriptions","organizations_url":"https://api.github.com/users/tcz717/orgs","repos_url":"https://api.github.com/users/tcz717/repos","events_url":"https://api.github.com/users/tcz717/events{/privacy}","received_events_url":"https://api.github.com/users/tcz717/received_events","type":"User","site_admin":false},"body":"- Add luasocket funtions: `socket.new()`, `socket.bind()`, `socket.listen()`, `socket.connect()`, `socket.accept()` and `socket.sendmsg()`\r\n- The adaption of `luadata` will be applied later\r\n- `socket.sendmsg()` and `socket.recvmsg()` give users ability to modify or get `struct msghdr` to control advanced network function\r\n- A quick install script:\r\n  ```shell\r\n  insmod lunatik.ko\r\n  \r\n  if [ ! -f /dev/luadrv ]  \r\n  then  \r\n      major=$(awk '$2==\"luadrv\" {print $1}' /proc/devices)  \r\n      mknod /dev/luadrv c ${major} 1  \r\n  fi  \r\n  ```\r\n- clang formating config:\r\n  ```\r\n  BasedOnStyle: LLVM\r\n  IndentWidth: 8\r\n  SpaceAfterCStyleCast: true\r\n  BreakBeforeBraces: Linux\r\n  UseTab: Always\r\n  AllowShortIfStatementsOnASingleLine: false\r\n  ```\r\n- `luasocket` test script\r\n```lua\r\nassert(socket)\r\nsock1 = socket.new(\"i\", \"t\")\r\nassert(sock1)\r\n\r\nsock1:bind(\"127.0.0.1\", 80)\r\nsock1:listen(5)\r\n\r\nsock2 = socket.new(\"i\", \"t\")\r\nassert(sock2)\r\n\r\nsock2:connect(\"127.0.0.1\", 80)\r\nsock3 = sock1:accept()\r\nassert(sock3)\r\n\r\nsock3:sendmsg({}, {1, 2, 3})\r\n\r\nsock4 = socket.new(\"i\", \"u\")\r\nassert(sock4)\r\nsock4:sendmsg(\r\n    {\r\n        name = {\r\n            addr = \"127.0.0.1\",\r\n            port = 1234\r\n        }\r\n    },\r\n    {1, 2, 3}\r\n)\r\n\r\n-- msg_control example\r\n-- sock4:sendmsg(\r\n--     {\r\n--         name = {\r\n--             addr = \"127.0.0.1\",\r\n--             port = 1234\r\n--         },\r\n--         control = {\r\n--             {level = \"ip\", type = \"if\"} -- IPPROTO_IP and IP_RECVIF\r\n--         },\r\n--         flags = \"r\" -- MSG_DONTROUTE\r\n--     },\r\n--     {1, 2, 3}\r\n-- )\r\n```","created_at":"2018-05-25T05:59:56Z","updated_at":"2018-06-18T20:34:37Z","closed_at":"2018-06-18T20:34:37Z","merged_at":null,"merge_commit_sha":"ee916a65ff9fe0167fdded09c226d9b1e6254cd8","assignee":null,"assignees":[],"requested_reviewers":[{"login":"lneto","id":5599633,"node_id":"MDQ6VXNlcjU1OTk2MzM=","avatar_url":"https://avatars1.githubusercontent.com/u/5599633?v=4","gravatar_id":"","url":"https://api.github.com/users/lneto","html_url":"https://github.com/lneto","followers_url":"https://api.github.com/users/lneto/followers","following_url":"https://api.github.com/users/lneto/following{/other_user}","gists_url":"https://api.github.com/users/lneto/gists{/gist_id}","starred_url":"https://api.github.com/users/lneto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lneto/subscriptions","organizations_url":"https://api.github.com/users/lneto/orgs","repos_url":"https://api.github.com/users/lneto/repos","events_url":"https://api.github.com/users/lneto/events{/privacy}","received_events_url":"https://api.github.com/users/lneto/received_events","type":"User","site_admin":false},{"login":"caioluiz","id":7417280,"node_id":"MDQ6VXNlcjc0MTcyODA=","avatar_url":"https://avatars0.githubusercontent.com/u/7417280?v=4","gravatar_id":"","url":"https://api.github.com/users/caioluiz","html_url":"https://github.com/caioluiz","followers_url":"https://api.github.com/users/caioluiz/followers","following_url":"https://api.github.com/users/caioluiz/following{/other_user}","gists_url":"https://api.github.com/users/caioluiz/gists{/gist_id}","starred_url":"https://api.github.com/users/caioluiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caioluiz/subscriptions","organizations_url":"https://api.github.com/users/caioluiz/orgs","repos_url":"https://api.github.com/users/caioluiz/repos","events_url":"https://api.github.com/users/caioluiz/events{/privacy}","received_events_url":"https://api.github.com/users/caioluiz/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/luainkernel/lunatik/pulls/4/commits","review_comments_url":"https://api.github.com/repos/luainkernel/lunatik/pulls/4/comments","review_comment_url":"https://api.github.com/repos/luainkernel/lunatik/pulls/comments{/number}","comments_url":"https://api.github.com/repos/luainkernel/lunatik/issues/4/comments","statuses_url":"https://api.github.com/repos/luainkernel/lunatik/statuses/9f0cfc65c947159922b04dea2680a3c000a7d8eb","head":{"label":"tcz717:luasocket","ref":"luasocket","sha":"9f0cfc65c947159922b04dea2680a3c000a7d8eb","user":{"login":"tcz717","id":3594312,"node_id":"MDQ6VXNlcjM1OTQzMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3594312?v=4","gravatar_id":"","url":"https://api.github.com/users/tcz717","html_url":"https://github.com/tcz717","followers_url":"https://api.github.com/users/tcz717/followers","following_url":"https://api.github.com/users/tcz717/following{/other_user}","gists_url":"https://api.github.com/users/tcz717/gists{/gist_id}","starred_url":"https://api.github.com/users/tcz717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcz717/subscriptions","organizations_url":"https://api.github.com/users/tcz717/orgs","repos_url":"https://api.github.com/users/tcz717/repos","events_url":"https://api.github.com/users/tcz717/events{/privacy}","received_events_url":"https://api.github.com/users/tcz717/received_events","type":"User","site_admin":false},"repo":{"id":133715187,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM3MTUxODc=","name":"lunatik","full_name":"tcz717/lunatik","owner":{"login":"tcz717","id":3594312,"node_id":"MDQ6VXNlcjM1OTQzMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3594312?v=4","gravatar_id":"","url":"https://api.github.com/users/tcz717","html_url":"https://github.com/tcz717","followers_url":"https://api.github.com/users/tcz717/followers","following_url":"https://api.github.com/users/tcz717/following{/other_user}","gists_url":"https://api.github.com/users/tcz717/gists{/gist_id}","starred_url":"https://api.github.com/users/tcz717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcz717/subscriptions","organizations_url":"https://api.github.com/users/tcz717/orgs","repos_url":"https://api.github.com/users/tcz717/repos","events_url":"https://api.github.com/users/tcz717/events{/privacy}","received_events_url":"https://api.github.com/users/tcz717/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tcz717/lunatik","description":"lua in kernel for Linux x86","fork":true,"url":"https://api.github.com/repos/tcz717/lunatik","forks_url":"https://api.github.com/repos/tcz717/lunatik/forks","keys_url":"https://api.github.com/repos/tcz717/lunatik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tcz717/lunatik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tcz717/lunatik/teams","hooks_url":"https://api.github.com/repos/tcz717/lunatik/hooks","issue_events_url":"https://api.github.com/repos/tcz717/lunatik/issues/events{/number}","events_url":"https://api.github.com/repos/tcz717/lunatik/events","assignees_url":"https://api.github.com/repos/tcz717/lunatik/assignees{/user}","branches_url":"https://api.github.com/repos/tcz717/lunatik/branches{/branch}","tags_url":"https://api.github.com/repos/tcz717/lunatik/tags","blobs_url":"https://api.github.com/repos/tcz717/lunatik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tcz717/lunatik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tcz717/lunatik/git/refs{/sha}","trees_url":"https://api.github.com/repos/tcz717/lunatik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tcz717/lunatik/statuses/{sha}","languages_url":"https://api.github.com/repos/tcz717/lunatik/languages","stargazers_url":"https://api.github.com/repos/tcz717/lunatik/stargazers","contributors_url":"https://api.github.com/repos/tcz717/lunatik/contributors","subscribers_url":"https://api.github.com/repos/tcz717/lunatik/subscribers","subscription_url":"https://api.github.com/repos/tcz717/lunatik/subscription","commits_url":"https://api.github.com/repos/tcz717/lunatik/commits{/sha}","git_commits_url":"https://api.github.com/repos/tcz717/lunatik/git/commits{/sha}","comments_url":"https://api.github.com/repos/tcz717/lunatik/comments{/number}","issue_comment_url":"https://api.github.com/repos/tcz717/lunatik/issues/comments{/number}","contents_url":"https://api.github.com/repos/tcz717/lunatik/contents/{+path}","compare_url":"https://api.github.com/repos/tcz717/lunatik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tcz717/lunatik/merges","archive_url":"https://api.github.com/repos/tcz717/lunatik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tcz717/lunatik/downloads","issues_url":"https://api.github.com/repos/tcz717/lunatik/issues{/number}","pulls_url":"https://api.github.com/repos/tcz717/lunatik/pulls{/number}","milestones_url":"https://api.github.com/repos/tcz717/lunatik/milestones{/number}","notifications_url":"https://api.github.com/repos/tcz717/lunatik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tcz717/lunatik/labels{/name}","releases_url":"https://api.github.com/repos/tcz717/lunatik/releases{/id}","deployments_url":"https://api.github.com/repos/tcz717/lunatik/deployments","created_at":"2018-05-16T19:42:56Z","updated_at":"2018-05-16T19:42:58Z","pushed_at":"2018-06-18T19:18:44Z","git_url":"git://github.com/tcz717/lunatik.git","ssh_url":"git@github.com:tcz717/lunatik.git","clone_url":"https://github.com/tcz717/lunatik.git","svn_url":"https://github.com/tcz717/lunatik","homepage":"","size":4431,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"luainkernel:master","ref":"master","sha":"1dc175b2c0f092114cb55b15770896ff98d1762c","user":{"login":"luainkernel","id":22322188,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzIyMTg4","avatar_url":"https://avatars2.githubusercontent.com/u/22322188?v=4","gravatar_id":"","url":"https://api.github.com/users/luainkernel","html_url":"https://github.com/luainkernel","followers_url":"https://api.github.com/users/luainkernel/followers","following_url":"https://api.github.com/users/luainkernel/following{/other_user}","gists_url":"https://api.github.com/users/luainkernel/gists{/gist_id}","starred_url":"https://api.github.com/users/luainkernel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luainkernel/subscriptions","organizations_url":"https://api.github.com/users/luainkernel/orgs","repos_url":"https://api.github.com/users/luainkernel/repos","events_url":"https://api.github.com/users/luainkernel/events{/privacy}","received_events_url":"https://api.github.com/users/luainkernel/received_events","type":"Organization","site_admin":false},"repo":{"id":131418962,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE0MTg5NjI=","name":"lunatik","full_name":"luainkernel/lunatik","owner":{"login":"luainkernel","id":22322188,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzIyMTg4","avatar_url":"https://avatars2.githubusercontent.com/u/22322188?v=4","gravatar_id":"","url":"https://api.github.com/users/luainkernel","html_url":"https://github.com/luainkernel","followers_url":"https://api.github.com/users/luainkernel/followers","following_url":"https://api.github.com/users/luainkernel/following{/other_user}","gists_url":"https://api.github.com/users/luainkernel/gists{/gist_id}","starred_url":"https://api.github.com/users/luainkernel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luainkernel/subscriptions","organizations_url":"https://api.github.com/users/luainkernel/orgs","repos_url":"https://api.github.com/users/luainkernel/repos","events_url":"https://api.github.com/users/luainkernel/events{/privacy}","received_events_url":"https://api.github.com/users/luainkernel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/luainkernel/lunatik","description":"lua in kernel for Linux x86","fork":false,"url":"https://api.github.com/repos/luainkernel/lunatik","forks_url":"https://api.github.com/repos/luainkernel/lunatik/forks","keys_url":"https://api.github.com/repos/luainkernel/lunatik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luainkernel/lunatik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luainkernel/lunatik/teams","hooks_url":"https://api.github.com/repos/luainkernel/lunatik/hooks","issue_events_url":"https://api.github.com/repos/luainkernel/lunatik/issues/events{/number}","events_url":"https://api.github.com/repos/luainkernel/lunatik/events","assignees_url":"https://api.github.com/repos/luainkernel/lunatik/assignees{/user}","branches_url":"https://api.github.com/repos/luainkernel/lunatik/branches{/branch}","tags_url":"https://api.github.com/repos/luainkernel/lunatik/tags","blobs_url":"https://api.github.com/repos/luainkernel/lunatik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luainkernel/lunatik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luainkernel/lunatik/git/refs{/sha}","trees_url":"https://api.github.com/repos/luainkernel/lunatik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luainkernel/lunatik/statuses/{sha}","languages_url":"https://api.github.com/repos/luainkernel/lunatik/languages","stargazers_url":"https://api.github.com/repos/luainkernel/lunatik/stargazers","contributors_url":"https://api.github.com/repos/luainkernel/lunatik/contributors","subscribers_url":"https://api.github.com/repos/luainkernel/lunatik/subscribers","subscription_url":"https://api.github.com/repos/luainkernel/lunatik/subscription","commits_url":"https://api.github.com/repos/luainkernel/lunatik/commits{/sha}","git_commits_url":"https://api.github.com/repos/luainkernel/lunatik/git/commits{/sha}","comments_url":"https://api.github.com/repos/luainkernel/lunatik/comments{/number}","issue_comment_url":"https://api.github.com/repos/luainkernel/lunatik/issues/comments{/number}","contents_url":"https://api.github.com/repos/luainkernel/lunatik/contents/{+path}","compare_url":"https://api.github.com/repos/luainkernel/lunatik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luainkernel/lunatik/merges","archive_url":"https://api.github.com/repos/luainkernel/lunatik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luainkernel/lunatik/downloads","issues_url":"https://api.github.com/repos/luainkernel/lunatik/issues{/number}","pulls_url":"https://api.github.com/repos/luainkernel/lunatik/pulls{/number}","milestones_url":"https://api.github.com/repos/luainkernel/lunatik/milestones{/number}","notifications_url":"https://api.github.com/repos/luainkernel/lunatik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luainkernel/lunatik/labels{/name}","releases_url":"https://api.github.com/repos/luainkernel/lunatik/releases{/id}","deployments_url":"https://api.github.com/repos/luainkernel/lunatik/deployments","created_at":"2018-04-28T14:58:30Z","updated_at":"2018-05-19T20:35:17Z","pushed_at":"2018-06-15T18:26:13Z","git_url":"git://github.com/luainkernel/lunatik.git","ssh_url":"git@github.com:luainkernel/lunatik.git","clone_url":"https://github.com/luainkernel/lunatik.git","svn_url":"https://github.com/luainkernel/lunatik","homepage":"","size":4412,"stargazers_count":3,"watchers_count":3,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":2,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/luainkernel/lunatik/pulls/4"},"html":{"href":"https://github.com/luainkernel/lunatik/pull/4"},"issue":{"href":"https://api.github.com/repos/luainkernel/lunatik/issues/4"},"comments":{"href":"https://api.github.com/repos/luainkernel/lunatik/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/luainkernel/lunatik/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/luainkernel/lunatik/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/luainkernel/lunatik/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/luainkernel/lunatik/statuses/9f0cfc65c947159922b04dea2680a3c000a7d8eb"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":4,"maintainer_can_modify":false,"commits":6,"additions":345,"deletions":4,"changed_files":9}}
{"actor":{"display_login":"tcz717"}}