{"action":"created","issue":{"url":"https://api.github.com/repos/starwing/znet/issues/14","repository_url":"https://api.github.com/repos/starwing/znet","labels_url":"https://api.github.com/repos/starwing/znet/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/starwing/znet/issues/14/comments","events_url":"https://api.github.com/repos/starwing/znet/issues/14/events","html_url":"https://github.com/starwing/znet/issues/14","id":125827623,"number":14,"title":"asynchronize getaddrinfo/getnameinfo","user":{"login":"starwing","id":114483,"avatar_url":"https://avatars.githubusercontent.com/u/114483?v=3","gravatar_id":"","url":"https://api.github.com/users/starwing","html_url":"https://github.com/starwing","followers_url":"https://api.github.com/users/starwing/followers","following_url":"https://api.github.com/users/starwing/following{/other_user}","gists_url":"https://api.github.com/users/starwing/gists{/gist_id}","starred_url":"https://api.github.com/users/starwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starwing/subscriptions","organizations_url":"https://api.github.com/users/starwing/orgs","repos_url":"https://api.github.com/users/starwing/repos","events_url":"https://api.github.com/users/starwing/events{/privacy}","received_events_url":"https://api.github.com/users/starwing/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/starwing/znet/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2016-01-10T15:56:04Z","updated_at":"2016-07-04T11:32:44Z","closed_at":null,"body":"@ownwaterloo 计划加入 getaddrinfo 和 getnameinfo 的功能了。主要的动机其实是异步执行耗时任务，也就是线程池，如果不想自己写mysql的协议，那么异步执行阻塞任务其实是很重要的事情。\r\n\r\n那么，目前的工作就成了：\r\n  1. [X] 加入异步任务功能，zn_Work\r\n  2. [x] 利用异步任务，实现异步的getaddrinfo和getnameinfo功能\r\n  3. [ ] 添加异步任务的Lua绑定（可能会比较麻烦，毕竟Lua无法多线程执行，可能需要新建一个lua_State执行异步的任务）。\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/starwing/znet/issues/comments/230270201","html_url":"https://github.com/starwing/znet/issues/14#issuecomment-230270201","issue_url":"https://api.github.com/repos/starwing/znet/issues/14","id":230270201,"user":{"login":"starwing","id":114483,"avatar_url":"https://avatars.githubusercontent.com/u/114483?v=3","gravatar_id":"","url":"https://api.github.com/users/starwing","html_url":"https://github.com/starwing","followers_url":"https://api.github.com/users/starwing/followers","following_url":"https://api.github.com/users/starwing/following{/other_user}","gists_url":"https://api.github.com/users/starwing/gists{/gist_id}","starred_url":"https://api.github.com/users/starwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starwing/subscriptions","organizations_url":"https://api.github.com/users/starwing/orgs","repos_url":"https://api.github.com/users/starwing/repos","events_url":"https://api.github.com/users/starwing/events{/privacy}","received_events_url":"https://api.github.com/users/starwing/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T11:32:44Z","updated_at":"2016-07-04T11:32:44Z","body":"另外，znet彻底改写过了，现在是单头文件库了，直接include就能用。zn_lua是Lua绑定，支持buffer和addrinfo。剩下的几个zn_*.h头文件都是独立的单头文件库。写的这么用心，都没有几个star，桑心= ="}}
{"actor":{"display_login":"starwing"}}