Commit Graph

499 Commits

Author SHA1 Message Date
bmagistro
ba9b8b459f return eagain if nread is 0 per libuv (#100)
Suppress EAGAIN/EWOULDBLOCK equivalents.
2017-09-12 13:39:58 +02:00
Michele Caini
f1dfeea41b WIP: tests 2017-09-08 23:36:40 +02:00
Michele Caini
1378ba152f docs 2017-09-08 09:25:01 +02:00
Michele Caini
dd841bb813 BaseHandle::type/BaseHandle::category functionalities 2017-09-08 09:10:01 +02:00
Slyshyk Oleksiy
61d126020d Fix compilation on win32 (#97)
* fix build flags for WIN32
* make mingw happy with template params
* correct few remarks
* declare StreamHandle constructor only for MSVC
* Return to old declaration of StreamHandle constructor
2017-08-28 23:34:17 +02:00
Michele Caini
f76f911c98 fixed: ProcessHandle::cwd declaration 2017-08-28 23:29:25 +02:00
Michele Caini
a05733db59 now working with libuv 1.14.0 2017-08-18 19:09:41 +02:00
Michele Caini
383182e4b0 WIP: review process 2017-08-18 17:44:14 +02:00
Michele Caini
97e0830794 fixed (everything is now back in place after #94) 2017-08-18 17:43:54 +02:00
Michele Caini
502870ed90 fixed docs 2017-08-18 17:16:03 +02:00
Michele Caini
d9b070500f docs 2017-08-05 22:58:53 +02:00
Michele Caini
4ae98c0278 cleanup 2017-08-01 17:39:24 +02:00
Michele Caini
cef596e908 minor changes 2017-08-01 17:35:59 +02:00
Tushar Maheshwari
795c6a8032 Common create method (#94)
* introduce resource_base
* Fix name resolving for ConstructorAccess
* Remove cross-ResourceBase friendship
* Rename to `UnderlyingType`
2017-08-01 17:21:35 +02:00
Michele Caini
b294b4fbd5 Test FsPollHandle (#90)
Test FsPollHandle
2017-07-11 21:14:21 +02:00
Michele Caini
60f5d7124d tests + minor changes 2017-07-09 15:04:44 +02:00
Michele Caini
389f0baad0 fixed tests 2017-07-09 00:32:37 +02:00
Michele Caini
e27c4d3f7d workaround: see https://github.com/libuv/libuv/issues/1406 2017-07-07 13:25:02 +02:00
Michele Caini
5e456163f1 invoke functions can have void return type 2017-07-07 13:24:32 +02:00
Daniel Filonik
e14d44d12e Fixed Watch/Event flags. (#88)
* Fixed Watch/Event flags.
* Changed parameter name to flag.
* Changed parameter name to "flag".
* Replaced "Watch" with "details::UVFsEvent".
2017-07-06 09:17:45 +02:00
Michele Caini
23a60af1e7 tests: lib 2017-06-16 15:35:02 +02:00
Michele Caini
40ca3fd469 tests + fixed uvw::Loop::configure 2017-06-16 10:47:46 +02:00
Michele Caini
5f7a913974 better doc 2017-06-14 08:49:47 +02:00
Michele Caini
36d05df0f5 review: Passwd (bug fixing + docs) 2017-06-13 14:09:00 +02:00
Michele Caini
6f98e5f8f2 updated to libuv v1.12.0 2017-06-11 00:54:07 +02:00
Michele Caini
f6d0fd976a deps.sh is no longer required + added Utilities::setupArgs 2017-05-24 17:13:40 +02:00
Michele Caini
67b0c5a9fb bug fixing 2017-03-24 15:59:05 +01:00
Michele Caini
add2153b8f utilities to set and get process title now available 2017-02-23 21:52:37 +01:00
Michele Caini
17c01f1c7e silent -Wshadow warnings 2017-02-23 21:15:52 +01:00
Michele Caini
ccbdb5eb07 bug fixing: uvw::Utilities::interfaceAddresses 2017-02-15 12:36:54 +01:00
Michele Caini
be305657f1 silent warnings 2017-02-13 09:58:42 +01:00
Michele Caini
58a115b7eb accomodating window requirements... 2017-02-13 09:31:24 +01:00
Michele Caini
f1545eb234 bug fixing 2017-02-13 09:17:43 +01:00
Michele Caini
44fffd4ae7 cleanup 2017-02-01 18:09:01 +01:00
Michele Caini
3534fecbf8 ongoing review 2017-02-01 17:56:55 +01:00
Michele Caini
75daf46790 minor changes 2017-02-01 17:56:28 +01:00
Michele Caini
a23636fa7b ongoing review 2017-02-01 14:48:10 +01:00
Michele Caini
72b25543d6 ongoing review 2017-02-01 14:14:44 +01:00
Michele Caini
ae79f1f918 ongoing review 2017-02-01 13:52:30 +01:00
Michele Caini
546cf458da ongoing review 2017-02-01 11:06:29 +01:00
Michele Caini
9755981538 ongoing review 2017-02-01 10:47:21 +01:00
Michele Caini
1be55de0a5 emitter/event improvements 2017-01-31 14:49:42 +01:00
Michele Caini
bef8bd1d5c tests: udp (partial) + added a few functions to udp handle 2017-01-30 15:39:34 +01:00
Michele Caini
f218b2f134 win: damn it 2017-01-26 17:49:40 +01:00
Michele Caini
0146ce7c87 win: damn it 2017-01-26 11:05:44 +01:00
Michele Caini
faadb8c7c7 win: damn it 2017-01-26 10:52:12 +01:00
Michele Caini
3c9d30c8d6 win: damn it 2017-01-26 10:45:29 +01:00
Michele Caini
397142c573 tests: dns 2017-01-25 16:10:27 +01:00
Michele Caini
17318fdd4e review: ProcessHandle + minor changes 2017-01-25 12:10:48 +01:00
Michele Caini
438886b425 added Flags::from + minor changes 2017-01-24 14:11:47 +01:00
Michele Caini
0a8558ecdd Merge pull request #77 from raoulh/master
Fix GCC warnings -Wshadow
2017-01-19 10:30:10 +01:00
Michele Caini
da3170bbd4 Update process.hpp 2017-01-19 09:05:52 +01:00
Michele Caini
f48b776787 Update tcp.hpp 2017-01-19 08:57:51 +01:00
Michele Caini
5006953d32 Update stream.hpp 2017-01-19 08:56:59 +01:00
Michele Caini
6ec90e034b Update tcp.hpp 2017-01-19 08:55:12 +01:00
Michele Caini
cd61357cb5 Update udp.hpp 2017-01-19 08:54:24 +01:00
Michele Caini
a47c8d629c Update udp.hpp 2017-01-19 08:53:16 +01:00
Michele Caini
c631e4cc9f Update fs_event.hpp 2017-01-19 08:43:37 +01:00
Raoul Hecky
652950da38 Add exitStatus parameter to ExitEvent 2017-01-18 22:28:49 +01:00
Michele Caini
dded65945c Update fs.hpp 2017-01-18 18:44:49 +01:00
Michele Caini
9de6c19ba8 Update fs.hpp 2017-01-18 18:43:17 +01:00
Michele Caini
f7fe22103a Update fs.hpp 2017-01-18 18:39:53 +01:00
Michele Caini
96ba93c3db Update poll.hpp 2017-01-18 18:32:50 +01:00
Michele Caini
696470b62d Update fs_poll.hpp 2017-01-18 18:32:04 +01:00
Michele Caini
d8c94e8b3d Update emitter.hpp 2017-01-18 18:30:16 +01:00
Michele Caini
da93c1fc0a docs: fixed 2017-01-18 18:19:39 +01:00
Michele Caini
e7a5575b0f minor changes 2017-01-18 18:08:09 +01:00
Michele Caini
b54d7537d1 bug fixing 2017-01-18 17:31:22 +01:00
Michele Caini
8bd65303e2 Update util.hpp 2017-01-18 12:30:39 +01:00
Michele Caini
3b824999d6 Update process.hpp 2017-01-18 12:28:59 +01:00
Raoul Hecky
938289528f uv_spawn: Do not set cwd to an empty string 2017-01-18 10:27:05 +01:00
Michele Caini
9139be8ebf Update dns.hpp 2017-01-18 09:52:17 +01:00
Michele Caini
133dc09965 Merge pull request #79 from raoulh/fix_warning
Fix -Wc++11-narrowing error/warning
2017-01-17 17:23:39 +01:00
Raoul Hecky
1f7ae4bad1 Use std::size_t 2017-01-16 00:19:01 +01:00
Raoul Hecky
d24a096c00 Fix -Wc++11-narrowing 2017-01-15 23:26:14 +01:00
Raoul Hecky
4f7b5fc13c Fix build failure when using UDPHandle::recv()
Missing const fails to compile the code
2017-01-15 19:31:44 +01:00
Raoul Hecky
9460c0c344 Fix GCC warnings -Wshadow
Renamed shadowed members errors like:
warning: declaration of ‘path’ shadows a member of
‘uvw::FsEvent<(uvw::details::UVFsType)10>’ [-Wshadow]
2017-01-15 14:31:29 +01:00
Michele Caini
fb75ade34f fixed 2017-01-11 23:22:01 +01:00
Michele Caini
1be5ed71a0 clean up 2017-01-11 22:48:51 +01:00
Michele Caini
f876a70710 resource::data is now a template member function 2017-01-11 21:58:55 +01:00
Jan Vcelak
79fbe76469 fix typo in documentation 2017-01-11 13:13:41 +01:00
Paolo Monteverde
eb1969f48a replaced ssize_t with std::size_t in ctors 2016-12-29 12:23:17 +01:00
Michele Caini
54684f7cf0 fixed 2016-12-01 13:22:53 +01:00
Michele Caini
7080ce0923 added unchecked writes 2016-12-01 12:54:14 +01:00
Paolo Monteverde
898746151e fixed compilation errors 2016-11-30 10:02:10 +01:00
Paolo Monteverde
dd1f45ea19 made DataEvent::data unique_ptr non-const 2016-11-30 09:38:32 +01:00
Michele Caini
08edf43456 Update resource.hpp
Updated docs accordingly
2016-11-28 10:48:39 +01:00
Tushar Maheshwari
bc9c0ec1ae explicit initialization of flags 2016-11-27 07:40:03 +05:30
Tushar Maheshwari
d2400033ed Changes as per comments 2016-11-25 23:27:48 +05:30
Michele Caini
731822a455 bug fixing 2016-11-24 18:09:05 +01:00
Michele Caini
af5dc89dec review (thanks to Tushar for the suggestion) 2016-11-24 17:02:23 +01:00
Michele Caini
68bf6c8449 review 2016-11-23 12:11:28 +01:00
Michele Caini
b76da4f869 review: emitter 2016-11-23 10:08:29 +01:00
Michele Caini
f17020c634 Update loop.hpp
minor changes
2016-11-14 09:09:23 +01:00
Tushar Maheshwari
5258c36d4d Reorder header includes as per comment 2016-11-13 17:16:17 +05:30
Tushar Maheshwari
affb4f0398 Remove extraneous casts 2016-11-13 13:00:02 +05:30
Michele Caini
7b5527a811 Update emitter.hpp
No guarantees on execution order, but removed the relation between `onceL` and `onL`.
2016-11-11 18:16:55 +01:00
Paolo Monteverde
2bbcffc2f3 insert callbacks to the back, so that will be invoked in the proper order 2016-11-11 15:45:13 +01:00
Michele Caini
202d7f2c89 tests: fs/FsReq/Realpath and fs/FsReq/RealpathSync 2016-11-11 11:20:26 +01:00
Michele Caini
66fb79ffe2 fixed doc 2016-11-10 14:45:40 +01:00
Michele Caini
5f857f8587 bug fixing + updated tests 2016-11-10 14:18:00 +01:00
Michele Caini
4f99ace585 tests: fs/FsReq/Utime and fs/FsReq/UtimeSync 2016-11-08 15:55:22 +01:00
Michele Caini
4b9a7a4440 bug fixing 2016-11-07 12:10:15 +01:00
Michele Caini
2838f6e239 added (maybe) missed header 2016-11-07 11:08:41 +01:00
Michele Caini
7586e37546 renaming 2016-11-04 12:02:12 +01:00
Michele Caini
14647325d2 fixed 2016-11-03 18:05:32 +01:00
Michele Caini
8329f6b597 fixed 2016-11-02 15:51:02 +01:00
Michele Caini
b2ab5187cd added user-data to the resource 2016-10-25 18:18:20 +02:00
Tushar Maheshwari
c02c20e27d Replacing for loops with std::copy_n 2016-10-16 11:53:42 +05:30
Michele Caini
1e158e80c8 improvements 2016-10-14 17:43:11 +02:00
Michele Caini
4286defc1f WIP: review 2016-10-14 15:40:45 +02:00
Michele Caini
bfcd165cb0 tests + bug fixing 2016-10-10 14:15:32 +02:00
Michele Caini
e7a88001b4 minor changes 2016-10-05 13:52:09 +02:00
Michele Caini
b9abaf5c11 Merge pull request #61 from tusharpm/cleanup
Cleanup
2016-10-05 11:25:16 +02:00
Tushar Maheshwari
6011ec6c3d Address more review comments
- add the required non-template `get` methods
- add static_assert as requested to detect usage of template `get` when not required
2016-10-04 21:53:06 +05:30
Michele Caini
6ae824c1a0 review 2016-10-04 12:33:14 +02:00
Tushar Maheshwari
e2e8b695ca Fix review comments
- revert changes required as a bugfix
- revert performance decreasing change
2016-10-03 19:51:27 +05:30
Tushar Maheshwari
40b36513b4 Reduce Request::defaultCallback template parameter 2016-10-02 23:58:09 +05:30
Tushar Maheshwari
7a68faff36 Fix Linux/macOS builds 2016-10-02 23:40:55 +05:30
Tushar Maheshwari
dc0b74e07f Simplify Handle::initialize template parameter 2016-10-02 23:31:24 +05:30
Tushar Maheshwari
113a35b039 Emitter members simplification
- Avoids undefined behavior in `clearAll` (`nullptr` dereference).
2016-10-02 23:18:53 +05:30
Tushar Maheshwari
041d5b3974 SharedLib: Use std::is_function instead of IsFunc 2016-10-02 22:52:30 +05:30
Tushar Maheshwari
7a0612b0ba Remove unnecessary headers 2016-10-02 22:47:37 +05:30
Tushar Maheshwari
e326dae4dd Simplify Resource::get member template parameter 2016-10-02 22:42:55 +05:30
Michele Caini
f6de2afd3e foo 2016-09-27 16:18:22 +02:00
Michele Caini
8df29ec76b Update util.hpp 2016-09-27 11:07:20 +02:00
Michele Caini
ec2836dc01 Update util.hpp 2016-09-27 09:55:24 +02:00
Michele Caini
600d2f5c79 Update process.hpp
Changed `IO_IGNORE` to `IGNORE_STREAM`, it seems more appropriate.
2016-09-27 08:40:05 +02:00
Tushar Maheshwari
c87550567a Address review comments. 2016-09-26 21:15:51 +05:30
Tushar Maheshwari
2081c2f386 Fix appveyor build for Windows x86
- platform should remain "Win32" for appveyor's scripts to execute
successfully
- Finding middle ground between clang and MSVC
2016-09-25 22:11:40 +05:30
Tushar Maheshwari
ca500b0b25 Adding appveyor integration
- Make required changes in CMake module files.
- Add supporting batch scripts to build.
- Modify C++ code to be compatible with VS2015 capabilities.
2016-09-25 22:10:41 +05:30
Michele Caini
9fd96eb4fb added Utilities::OS::passwd 2016-09-07 18:36:54 +02:00
Michele Caini
029eb4addc added Utilities::OS::tmpdir 2016-09-07 18:11:08 +02:00
Michele Caini
82944cfc27 added Utilities::OS::homedir 2016-09-07 18:08:37 +02:00
Michele Caini
108e9d547f added Utilities::rusage 2016-09-07 17:58:57 +02:00
Michele Caini
abe691169c clean up 2016-09-05 23:15:48 +02:00
Michele Caini
95230356b3 typo 2016-09-05 22:42:23 +02:00
Michele Caini
336e541f21 review 2016-09-05 22:36:40 +02:00
Michele Caini
ca7bfe48c1 added Utilities::exepath 2016-09-05 22:04:05 +02:00
Michele Caini
62dc2f468f added Utilities::cwd 2016-09-05 21:57:53 +02:00
Michele Caini
59d4ee3df7 added Utilities::chdir 2016-09-05 21:35:21 +02:00
Michele Caini
1536d6b46d added Utilities::hrtime 2016-09-05 21:30:28 +02:00
Michele Caini
716daf48a2 added Utilities::uptime 2016-09-05 21:25:23 +02:00
Michele Caini
733f673854 added Utilities::totalMemory 2016-08-30 12:19:58 +02:00
Michele Caini
670c7d6018 added Utilities::loadAverage 2016-08-29 12:16:00 +02:00
Michele Caini
4796c88369 clean up 2016-08-26 13:02:03 +02:00
Michele Caini
0aa93c4c7c added Utilities::cpuInfo + minor changes 2016-08-26 12:55:38 +02:00
Michele Caini
a2f09298a0 added Utilities::replaceAllocator 2016-08-25 18:06:57 +02:00
Michele Caini
a204675781 minor changes 2016-08-25 18:06:26 +02:00
Michele Caini
0bffb21fff added miscellaneous utilities + odr check 2016-08-25 17:33:37 +02:00
Michele Caini
09285bd405 added interfaces utility 2016-08-25 15:19:12 +02:00
Michele Caini
97a9156949 minor changes 2016-08-25 15:19:00 +02:00
Michele Caini
e1e135636c bug fixing + minor changes 2016-08-25 14:49:35 +02:00
Michele Caini
7ae993c5d2 refactoring 2016-08-25 09:32:24 +02:00
Michele Caini
dfd347b5f7 minor changes 2016-08-22 14:34:49 +02:00
Michele Caini
513f5264cb TODO 2016-08-22 14:26:09 +02:00
Michele Caini
3079ffe613 added common HandleType enum + guessHandle util 2016-08-22 13:57:25 +02:00
Michele Caini
c8d4177992 docs 2016-08-22 12:33:51 +02:00
Michele Caini
34651e72ef refactoring 2016-08-22 11:44:12 +02:00
Michele Caini
132ad36e33 minor changes 2016-08-22 11:21:15 +02:00
Michele Caini
b214aca7ea added empty check for event 2016-08-19 15:12:21 +02:00
Michele Caini
165dcf18af minor changes 2016-08-15 11:40:21 +02:00
Michele Caini
65e6d50161 docs 2016-08-11 17:12:39 +02:00
Michele Caini
fc7a63bc63 removed class Self 2016-08-09 15:43:37 +02:00
Michele Caini
d76ce4de01 minor changes + docs 2016-08-04 16:31:17 +02:00
Michele Caini
06595602f8 docs 2016-08-04 14:26:54 +02:00
Michele Caini
a14cac2ef5 minor changes 2016-08-03 20:37:59 +02:00
Michele Caini
1abfe6a2f6 docs 2016-08-03 19:39:45 +02:00
Michele Caini
d484c5a92b TcpHandle review 2016-08-03 16:26:12 +02:00
Michele Caini
13b60373e7 UDPHandle review 2016-08-03 16:25:59 +02:00
Michele Caini
3f9b69270f PollHandle review 2016-08-03 16:25:39 +02:00
Michele Caini
e412796d85 docs 2016-08-03 14:14:56 +02:00
Michele Caini
3a61c4b2a1 docs 2016-08-03 13:44:53 +02:00
Michele Caini
680de63cf3 docs 2016-08-03 13:21:24 +02:00
Michele Caini
59ded504aa docs 2016-08-02 19:35:49 +02:00
Michele Caini
bc72402206 docs 2016-08-02 18:39:27 +02:00
Michele Caini
a0b38c31ae docs + added missed functions 2016-08-02 16:39:41 +02:00
Michele Caini
21b22977d5 docs 2016-08-02 16:25:14 +02:00
Michele Caini
cda6434cb4 bug fixing 2016-08-02 14:49:17 +02:00
Michele Caini
db9540f9d5 renaming 2016-08-02 14:49:05 +02:00
Michele Caini
87cf652397 minor changes 2016-08-02 12:38:34 +02:00
Michele Caini
e989467ebd docs 2016-08-02 11:38:30 +02:00
Michele Caini
aff7b27f25 docs 2016-08-01 17:36:07 +02:00
Michele Caini
3673362c5c docs: async.hpp 2016-08-01 17:21:40 +02:00
Michele Caini
ce2f3a5a51 docs: loop.hpp 2016-08-01 17:10:46 +02:00
Michele Caini
aadfbfa8b9 updated docs 2016-08-01 15:19:33 +02:00
Michele Caini
cdcdbcfb6d updated threads 2016-08-01 12:29:56 +02:00
Michele Caini
c159f37771 minor changes 2016-08-01 09:30:59 +02:00
Michele Caini
7e8005a90a tests + bug fixing 2016-08-01 09:18:37 +02:00
Michele Caini
cf65a0a65f added Emitter::clearAll 2016-07-31 19:22:14 +02:00
Michele Caini
aa20079537 bug fixing 2016-07-31 19:21:55 +02:00
Michele Caini
b4eac549db WIP: thread.hpp -> added Thread 2016-07-29 17:44:50 +02:00
Michele Caini
1c00ca50b3 minor changes 2016-07-29 17:39:22 +02:00
Michele Caini
3c7e24464d clean up 2016-07-29 15:27:42 +02:00
Michele Caini
32a5a84a7d fixed include directives 2016-07-29 15:17:59 +02:00
Michele Caini
a226227bcf dns: added GetNameInfoReq 2016-07-29 14:51:35 +02:00
Michele Caini
5bb91fe180 WIP: dns, added GetAddrInfoReq 2016-07-29 14:05:42 +02:00
Michele Caini
7e1acb9141 added ProcessHandle 2016-07-29 11:36:12 +02:00
Michele Caini
06111761bb Fs review 2016-07-29 09:22:12 +02:00
Michele Caini
a6e67f061d WorkReq review 2016-07-28 18:12:50 +02:00