Commit Graph

395 Commits

Author SHA1 Message Date
Shuhei Tanuma
32bc6e6cfb refactor tcp_bind 2012-07-07 19:23:22 +09:00
Shuhei Tanuma
2b2a7cb07b refacotr fs cb 2012-07-07 19:13:15 +09:00
Shuhei Tanuma
1dc58c224a refactoring uv_ip4_name 2012-07-07 18:59:43 +09:00
Shuhei Tanuma
caa4c88463 fix windows compile error 2012-07-07 07:52:29 +09:00
Shuhei Tanuma
f3105a07a7 fix uv_tcp_bind6 2012-07-07 00:20:22 +09:00
Shuhei Tanuma
0e5e110e52 add http-parser version info 2012-07-06 23:55:45 +09:00
Shuhei Tanuma
6eef75b96e add error check for uv_ip[46]_name 2012-07-06 23:49:56 +09:00
Shuhei Tanuma
5eb1541762 fix several fs issues. 2012-07-05 22:42:38 +09:00
Shuhei Tanuma
55bd9d48d7 WIP: fs 2012-07-05 22:12:25 +09:00
Shuhei Tanuma
302d9ae0a1 WIP: fixing fs event 2012-07-04 09:40:06 +09:00
Shuhei Tanuma
f6a2bd4858 change uv_fs_read cb signature: use same callback signature as uv_read_cb 2012-07-03 08:20:50 +09:00
Shuhei Tanuma
1733e1e404 add pipe_bind test case 2012-07-03 08:01:32 +09:00
Shuhei Tanuma
2edefe2d55 prevent SEGV when throws Fatal error on callback context. 2012-07-02 23:37:44 +09:00
Shuhei Tanuma
d3d245d4fc add tcp bind test 2012-07-02 13:32:19 +09:00
Shuhei Tanuma
506f06a33e remove unused variable 2012-07-02 13:08:54 +09:00
Shuhei Tanuma
40118b27ae do not initialize ares on startup. 2012-07-02 01:05:09 +09:00
Shuhei Tanuma
4852ac5a5c change function signature: uv_udp_recv, uv_udp_recv_start 2012-07-01 22:35:22 +09:00
Shuhei Tanuma
7cee41bbb7 change function signature. (respects native function signature) 2012-07-01 22:28:57 +09:00
Shuhei Tanuma
c80410fb08 add more error information : uv_shutdown 2012-07-01 20:21:33 +09:00
Shuhei Tanuma
65c638fdef add error handling 2012-07-01 20:09:38 +09:00
Shuhei Tanuma
8eff213350 add http parser support:
currently, php-uv has socket handling problem. (https://github.com/chobie/php-uv/issues/5)
if I don't support httpparser. hard to explain it.
2012-07-01 13:15:14 +09:00
Shuhei Tanuma
15effdd452 for now, force remove resource when calling uv_close 2012-07-01 09:08:23 +09:00
Shuhei Tanuma
56bdf3b76f add pending parameter. 2012-07-01 08:42:50 +09:00
Shuhei Tanuma
96baa735e3 PHP_UV_DEBUG should be 0 2012-07-01 08:32:05 +09:00
Shuhei Tanuma
b9d2debe61 for now, add uv_read2 2012-07-01 08:25:16 +09:00
Shuhei Tanuma
c2aa852c2a fix gethostbyname_cb test 2012-07-01 02:13:12 +09:00
Shuhei Tanuma
0f13955271 add uv_shutdown 2012-07-01 01:57:08 +09:00
Shuhei Tanuma
f633aa788c change uv_read_start signature. 2012-06-30 22:15:29 +09:00
Shuhei Tanuma
5f7d8610a0 fix debug macro 2012-06-30 16:45:40 +09:00
Shuhei Tanuma
392c146810 add proto comment for uv_mutex 2012-06-30 16:31:19 +09:00
Shuhei Tanuma
fa9e1ecd48 fix windows compile error 2012-06-30 14:54:58 +09:00
Shuhei Tanuma
bcdd3a21e9 improve uv_mutex functions and add test case 2012-06-30 14:42:06 +09:00
Shuhei Tanuma
449205e213 add uv_rwlock test cases and improve uv-rwlock functions 2012-06-30 14:10:58 +09:00
Shuhei Tanuma
87334570b1 add uv_idle test case 2012-06-30 13:02:53 +09:00
Shuhei Tanuma
4d90f621f8 add ares_gethostbyname testcase 2012-06-30 12:35:01 +09:00
Shuhei Tanuma
3abb548c43 use macro instead of copy and pasted codes 2012-06-30 00:58:20 +09:00
Shuhei Tanuma
023a096a1e prettify codes: use common macro 2012-06-30 00:42:33 +09:00
Shuhei Tanuma
6198618233 prettify codes 2012-06-28 22:49:08 +09:00
Shuhei Tanuma
4e9af23f04 add several arginfo 2012-06-28 22:33:10 +09:00
Shuhei Tanuma
44487e51ad add several arginfo 2012-06-27 01:32:56 +09:00
Shuhei Tanuma
e059b19cc5 fix compile warnings 2012-06-27 01:12:28 +09:00
Shuhei Tanuma
354832a102 add arginfo for fs functions 2012-06-27 01:03:34 +09:00
Shuhei Tanuma
7570549079 fix timer 2012-06-26 09:02:52 +09:00
Shuhei Tanuma
b300fe2562 fix windows compile 2012-06-26 01:34:25 +09:00
Shuhei Tanuma
ef2a5a6e7f fix uv_timer functions 2012-06-26 01:27:06 +09:00
Shuhei Tanuma
a221153bcd fix several compile warnings 2012-06-26 01:04:16 +09:00
Shuhei Tanuma
9ced1cbafc fix compile warnings 2012-06-26 00:49:16 +09:00
Shuhei Tanuma
ccc05f1032 use wrapper macro fro zend_list_insert 2012-06-26 00:30:45 +09:00
Shuhei Tanuma
b9f45169b0 remove uv_get_process_title and uv_setup_args api
https://github.com/joyent/libuv/issues/477#issuecomment-6549751
2012-06-26 00:14:01 +09:00
Shuhei Tanuma
3964e3ad7d this should be okay 2012-06-26 00:10:40 +09:00
Shuhei Tanuma
958065cbfd fix windows compile 2012-06-25 23:59:49 +09:00
Shuhei Tanuma
3ea33c216b add uv_setup_args and fix uv_get_process_title. should i call uv_setup_args at RINIT phase ? 2012-06-25 13:34:47 +09:00
Shuhei Tanuma
9a0624ecfc fix uv_cwd 2012-06-25 13:05:42 +09:00
Shuhei Tanuma
b97ae4dcb5 fix uv_spawn. I should consider uv_spawn params. 2012-06-25 01:29:22 +09:00
Shuhei Tanuma
2f4a2b25c8 remove debug function 2012-06-25 00:41:54 +09:00
Shuhei Tanuma
de6729a999 prettify function entries 2012-06-25 00:38:13 +09:00
Shuhei Tanuma
7e8d837719 add minfo 2012-06-25 00:29:10 +09:00
Shuhei Tanuma
7f026cf1b2 add several test cases 2012-06-25 00:20:19 +09:00
Shuhei Tanuma
f57217a8e1 add uv_udp_set_membership api 2012-06-24 22:33:47 +09:00
Shuhei Tanuma
eb60baf01f add several ipv6 functions 2012-06-24 16:28:04 +09:00
Shuhei Tanuma
fb9bf8c9eb add uv_ip6_name and uv_ip4_name api 2012-06-24 15:39:51 +09:00
Shuhei Tanuma
45ae407966 fix several compile warnings 2012-06-24 15:24:42 +09:00
Shuhei Tanuma
d4ea9a19dd add uv_ip6_addr api 2012-06-24 15:18:33 +09:00
Shuhei Tanuma
61a56b15a7 adjust getaddrinfo api 2012-06-24 03:34:06 +09:00
Shuhei Tanuma
5754a59f4a add getsockname and getpeername api 2012-06-23 20:27:57 +09:00
Shuhei Tanuma
6252d80fb0 add uv_tty apis 2012-06-23 15:05:14 +09:00
Shuhei Tanuma
60d9842928 add fs_event_init api (not tested) 2012-06-23 14:18:52 +09:00
Shuhei Tanuma
f4a8360ae8 add sendfile api (not tested) 2012-06-23 13:40:18 +09:00
Shuhei Tanuma
fd1c14d2e1 add readdir api 2012-06-23 13:27:59 +09:00
Shuhei Tanuma
ff0e26ed84 add stat api 2012-06-23 13:00:27 +09:00
Shuhei Tanuma
6ed669b8d1 use libuv v0.8.0. for now this can compile osx only. i'll fix it soon 2012-06-23 12:07:22 +09:00
Shuhei Tanuma
403cbe90b9 WIP: uv_fs_stat 2012-06-23 12:01:10 +09:00
Shuhei Tanuma
0f28e7f5ee add readlink api 2012-06-23 11:22:41 +09:00
Shuhei Tanuma
380cc0b270 add chown, symlink apis 2012-06-23 02:17:41 +09:00
Shuhei Tanuma
46b12352e8 add chown api 2012-06-23 02:07:56 +09:00
Shuhei Tanuma
1c87ec5fea add chmod api 2012-06-23 02:06:03 +09:00
Shuhei Tanuma
8507b9e07f add fs_utime, fs_ftime api 2012-06-23 01:58:00 +09:00
Shuhei Tanuma
4cf851201b add rename api 2012-06-23 01:48:29 +09:00
Shuhei Tanuma
cd9f1b959e add several fs api 2012-06-23 01:45:00 +09:00
Shuhei Tanuma
1cfb785928 add ftruncate api 2012-06-23 01:26:44 +09:00
Shuhei Tanuma
ade8106ee0 add uv_fs_fdatasync 2012-06-23 01:19:21 +09:00
Shuhei Tanuma
c8b34ad284 refactor uv_fs_fsync 2012-06-23 01:16:27 +09:00
Shuhei Tanuma
34ffc66e9c add fsync api 2012-06-23 00:59:27 +09:00
Shuhei Tanuma
5a397094bd adjust fs_read 2012-06-23 00:53:58 +09:00
Shuhei Tanuma
fba2060afc add fs constants 2012-06-22 23:01:32 +09:00
Shuhei Tanuma
a902f29ea2 adjust uv_fs_write 2012-06-22 12:51:16 +09:00
Shuhei Tanuma
83e9daf1cc add uv_fs_close 2012-06-22 12:13:11 +09:00
Shuhei Tanuma
64deffda15 WIP: uv_fs 2012-06-22 08:20:22 +09:00
Shuhei Tanuma
3b1570d34b WIP: uv_fs_read 2012-06-21 09:43:20 +09:00
Shuhei Tanuma
983568aa1f WIP: fs 2012-06-20 12:40:39 +09:00
Shuhei Tanuma
ceab2df331 fix uv_idle_init 2012-06-19 08:05:50 +09:00
Shuhei Tanuma
6812bfff8a Merge pull request #2 from stealth35/fix_win
Fix windows errors
2012-06-18 07:37:37 -07:00
stealth35
9bbc4e9ef8 Fix windows errors 2012-06-18 15:32:15 +02:00
Shuhei Tanuma
c722e00835 remove uv_loop_refcount 2012-06-18 21:52:43 +09:00
Shuhei Tanuma
31dec36418 added async and queue_work api. TODO: research eio_custom 2012-06-18 01:32:50 +09:00
Shuhei Tanuma
82845ff34c add async api 2012-06-17 23:18:33 +09:00
Shuhei Tanuma
011c874710 add check api 2012-06-17 23:04:54 +09:00
Shuhei Tanuma
b98e8f05b6 add prepare api 2012-06-17 22:50:18 +09:00
Shuhei Tanuma
1f7cdb555f add mutex functions 2012-06-17 21:18:30 +09:00
Shuhei Tanuma
4d57292d8d for now, add rwlock functions 2012-06-17 21:11:16 +09:00
Shuhei Tanuma
efbdc8bef2 for now, add rwlock functions 2012-06-16 17:37:57 +09:00
Shuhei Tanuma
80e3480a97 add uv_rwlock_init 2012-06-16 17:24:55 +09:00
Shuhei Tanuma
3af703c8d0 add uv_chdir 2012-06-16 16:49:38 +09:00
Shuhei Tanuma
735868b5e9 add several functions 2012-06-16 16:43:02 +09:00
Shuhei Tanuma
5b3bf8ac49 add uv_exepath 2012-06-16 16:39:43 +09:00
Shuhei Tanuma
568b3ac313 add several functions 2012-06-16 16:32:46 +09:00
Shuhei Tanuma
60a5824e5f add arginfo_uv_spawn 2012-06-16 16:19:17 +09:00
Shuhei Tanuma
99fc3016e2 add arginfo 2012-06-16 16:17:52 +09:00
Shuhei Tanuma
3e2c488c1e add some functions 2012-06-15 23:29:36 +09:00
Shuhei Tanuma
26d90b8493 for now, implement env 2012-06-15 22:47:46 +09:00
Shuhei Tanuma
cd089816aa use TSRMLS_FETCH_FROM_CTX(); 2012-06-15 00:18:09 +09:00
Shuhei Tanuma
484d5e9bda apply uv_spawn arguments 2012-06-14 23:07:12 +09:00
Shuhei Tanuma
ef8aa9d863 for now, just work uv_spawn 2012-06-14 22:24:19 +09:00
Shuhei Tanuma
c770809e54 WIP: uv_spawn 2012-06-13 19:42:12 +09:00
Shuhei Tanuma
e6102f6546 fix ifdef macro. ifdef is not if lol 2012-06-12 21:46:35 +09:00
Shuhei Tanuma
05d0a6c546 probably this will fix refcounting problem... 2012-06-12 12:08:55 +09:00
Shuhei Tanuma
69307659b0 WIP: refcount 2012-06-12 07:54:57 +09:00
Shuhei Tanuma
4c8d1c6aa7 WIP: improve refcounting 2012-06-11 13:14:15 +09:00
Shuhei Tanuma
2b077cb6ac fix typo 2012-06-11 12:32:12 +09:00
Shuhei Tanuma
9adb753f88 fix typo 2012-06-11 12:30:13 +09:00
Shuhei Tanuma
c18bb9e557 hm, refcounting is difficult 2012-06-10 22:38:18 +09:00
Shuhei Tanuma
cbc24f63f2 add some util functions 2012-06-05 01:12:13 +09:00
Shuhei Tanuma
0899a7ffd9 fix compile error 2012-06-04 12:40:50 +09:00
Shuhei Tanuma
06fa3a1fb0 split aress structures from php_uv_t 2012-06-04 01:23:06 +09:00
Shuhei Tanuma
a241a55602 adjust request example. and fix read_start_cb. it might called mutiple times. 2012-06-04 00:37:45 +09:00
Shuhei Tanuma
a3a1cc887c for now, gethostbyname just works. but needs refactor 2012-06-04 00:10:30 +09:00
Shuhei Tanuma
e7b0c7b4d6 adjust uv_tcp_bind signature 2012-06-02 21:45:43 +09:00
Shuhei Tanuma
789ce066a5 add uv_pipe_pending_instances api (windows only) 2012-06-02 15:29:31 +09:00
Shuhei Tanuma
e0a43a1ca8 *_init accepts loop parameter 2012-06-02 15:28:54 +09:00
Shuhei Tanuma
e74ef7e11a fix uv_read_stop 2012-06-02 15:06:39 +09:00
Shuhei Tanuma
ae12840330 fix recounting issue 2012-06-02 01:37:29 +09:00
Shuhei Tanuma
2beb9f776d fix refcounting 2012-06-01 12:54:52 +09:00
Shuhei Tanuma
d0812b846f add uv_pipe_connect api. I'm still thinking refcount. 2012-06-01 02:23:34 +09:00
Shuhei Tanuma
be3c860c07 add pipe api 2012-05-31 13:39:30 +09:00
Shuhei Tanuma
3614801006 add uv_timer_stop, uv_timer_again, uv_timer_set_repeat, uv_timer_get_repeat api 2012-05-31 07:11:52 +09:00
Shuhei Tanuma
b6b3bfdd75 add uv_is_active, uv_is_readable, uv_is_writable api 2012-05-31 06:59:21 +09:00
Shuhei Tanuma
d181d73516 add uv_read_stop api 2012-05-31 06:43:12 +09:00
Shuhei Tanuma
7fe7fd50ff add uv_now api 2012-05-31 06:39:58 +09:00
Shuhei Tanuma
aef0a631e8 add uv_loop_delete api 2012-05-31 06:36:11 +09:00
Shuhei Tanuma
653307e052 fix SEGV when using uv_idle_stop 2012-05-30 22:34:14 +09:00
Shuhei Tanuma
d9623a895a fix compile warnings 2012-05-30 22:32:11 +09:00
Shuhei Tanuma
9745c02d9c fix callback function signature 2012-05-30 22:18:50 +09:00
Shuhei Tanuma
79e5458f14 remove needless variables 2012-05-30 22:17:19 +09:00
Shuhei Tanuma
b56fadd1da add uv_err_name api 2012-05-30 13:17:01 +09:00
Shuhei Tanuma
c47e9f8021 add uv_udpate_time api 2012-05-30 13:13:36 +09:00
Shuhei Tanuma
383dfad304 fix uv_strerror 2012-05-30 13:09:47 +09:00
Shuhei Tanuma
6964a1643d add comment for upd_recv 2012-05-30 13:07:37 +09:00
Shuhei Tanuma
59a0bd298e fix comment 2012-05-30 13:06:37 +09:00
Shuhei Tanuma
de66977451 add udp api 2012-05-30 01:47:34 +09:00
Shuhei Tanuma
b3d3bbc313 fix idle refcount 2012-05-29 20:10:46 +09:00
Shuhei Tanuma
556cf755ef little bit improve callback codes 2012-05-29 12:40:29 +09:00
Shuhei Tanuma
54bf7cb7dd improve source codes 2012-05-29 08:00:17 +09:00
Shuhei Tanuma
66a44ed07d add folding markers 2012-05-29 07:35:55 +09:00
Shuhei Tanuma
05288d1ba2 re-orederd function entries 2012-05-29 07:31:25 +09:00
Shuhei Tanuma
33d5820b39 for now, use php_error_docref instead of fprintf debug 2012-05-29 07:28:58 +09:00
Shuhei Tanuma
1712419a4e improve declarations 2012-05-29 01:12:09 +09:00
Shuhei Tanuma
486402002b WIP: uv_tcp_connect 2012-05-28 22:55:58 +09:00
Shuhei Tanuma
22594f3758 fix typo 2012-05-28 22:54:54 +09:00
Shuhei Tanuma
40a56c77af add uv_tcp_nodelay 2012-05-28 22:44:54 +09:00
Shuhei Tanuma
be20ff21da fix shutdown leaks 2012-05-28 22:39:25 +09:00
Shuhei Tanuma
e27a660b16 add uv_loop_refcount api for debug 2012-05-28 22:31:13 +09:00
Shuhei Tanuma
aa67d3099c add uv_default_loop function. uv_run and uv_run_once accepts uv_loop resource 2012-05-28 22:18:36 +09:00
Shuhei Tanuma
d67bc173c4 add declarations 2012-05-28 21:52:09 +09:00
Shuhei Tanuma
136af6a8d6 add uv_idle_stop api 2012-05-28 12:37:56 +09:00
Shuhei Tanuma
69f2ebb5ed add idle API 2012-05-28 12:29:15 +09:00
Shuhei Tanuma
b1d3e3ada9 update copyrights 2012-05-28 12:10:49 +09:00
Shuhei Tanuma
ce4ed19660 add fixme 2012-05-27 23:53:59 +09:00
Shuhei Tanuma
2b77f7b1b2 for now, big leak issue were solved. but still there are some leaks. 2012-05-27 23:27:17 +09:00
Shuhei Tanuma
a9faab5fe0 improve allocated memories 2012-05-27 23:13:09 +09:00
Shuhei Tanuma
91a3f9d278 add efree for read_cb 2012-05-27 22:28:26 +09:00
Shuhei Tanuma
21101951f8 WIP: memory leak. I'll read sara's book again.. 2012-05-27 18:17:06 +09:00
Shuhei Tanuma
9db1413351 adjust style 2012-05-27 17:05:25 +09:00
Shuhei Tanuma
c56bb21835 zval_ptr_dtor also will be decrease resource count 2012-05-27 16:53:30 +09:00
Shuhei Tanuma
28daebffca use ZVAL_RESOURCE macro 2012-05-27 15:36:03 +09:00
Shuhei Tanuma
f8cc7dc9b6 remove leaks 2012-05-27 15:14:56 +09:00
Shuhei Tanuma
c22382e858 fixing memory leaks: snapshot 2012-05-27 15:12:13 +09:00
Shuhei Tanuma
8ce82568d2 WIP: fixing memory leak 2012-05-27 14:43:27 +09:00
Shuhei Tanuma
8882e5c44b add error handling 2012-05-27 13:48:10 +09:00
Shuhei Tanuma
6ea7553537 add timer 2012-05-26 23:26:29 +09:00
Shuhei Tanuma
22aefe4ded improve php_uv_t structure 2012-05-26 22:59:59 +09:00
Shuhei Tanuma
57089618bc add uv_last_error 2012-05-26 22:54:43 +09:00
Shuhei Tanuma
6e61335453 don't re-register resources 2012-05-26 22:25:15 +09:00
Shuhei Tanuma
404b8df7e4 add write callback 2012-05-26 22:19:54 +09:00
Shuhei Tanuma
a915b6e462 fix php_uv_listen_cb parameter 2012-05-26 22:08:21 +09:00
Shuhei Tanuma
cb8c646baf fix php_uv_read_cb parameters 2012-05-26 22:03:21 +09:00
Shuhei Tanuma
42ab3ba8d8 WIP: uv_read_cb parameters 2012-05-26 17:29:04 +09:00
Shuhei Tanuma
271b28dd04 uv_read_start just works! the problem was caused by gc. 2012-05-26 16:49:50 +09:00
Shuhei Tanuma
2e815a1b67 WIP 2012-05-26 14:05:17 +09:00
Shuhei Tanuma
0976df55b6 WIP: uv_read_start 2012-05-25 08:07:12 +09:00
Shuhei Tanuma
440e1b3dbe uv_read_start just works 2012-05-24 23:29:54 +09:00
Shuhei Tanuma
32849ea022 WIP: uv_accept 2012-05-24 13:07:52 +09:00
Shuhei Tanuma
c4d01fb060 2012/05/24 snapshot 2012-05-24 02:31:16 +09:00
Shuhei Tanuma
568c29dd34 add uv_tcp_bind and uv_listen 2012-05-23 20:41:04 +09:00
Shuhei Tanuma
9d3bde8942 add some functions. still doesn't work yet 2012-05-23 13:35:28 +09:00
Shuhei Tanuma
db9a66823a add templates 2012-05-23 02:43:11 +09:00