Bryan Roe
97ad48f2f2
1. Added ILibChain_WriteEx()
...
2. Updated ILibChain_Continue() on windows to take an optional list of HANDLE**
3. Updated net.socket IPC on Windows to use ILibChain_ReadEx and ILibChain_WriteEx
4. Fixed child_process.waitExit() on windows to pass only the wait handles for the process
5. Added GetWaitHandles() to ILibProcessPipe
2020-05-15 17:25:49 -07:00
Bryan Roe
67cb052356
fixed microsecond to millisecond conversion error
2020-05-11 15:36:41 -07:00
Bryan Roe
a4c5430879
Updated windows path to use ReadEx when overlapped is supported
2020-05-09 11:02:16 -07:00
Bryan Roe
b2b78a3dbe
Fixed so current node can be removed while being dispatched
2020-05-08 19:37:16 -07:00
Bryan Roe
dd0cd1af85
Fixed timeout, for child_process.waitExit()
2020-05-07 22:19:49 -07:00
Bryan Roe
0dc052319c
Fixed #ifdef
2020-05-07 12:31:58 -07:00
Bryan Roe
9668b8d77d
Update to use new threading model for windows
2020-05-07 10:29:49 -07:00
Bryan Roe
47066bd825
untested changes
2020-05-06 14:03:41 -07:00
Bryan Roe
5fb0cef7db
1. Removed debug message from child-container
...
2. Fixed WriteEx() behavior
3. Fixed AddWaitHandle() to use APC if called from wrong thread
4. Fixed net.ipcSocket to return correct value if write completed right away
2020-05-05 16:12:23 -07:00
Bryan Roe
969909cca7
Updated WriteEx
2020-05-05 02:00:07 -07:00
Bryan Roe
a58c3279b7
Added WaitHandles array to chain
2020-05-04 21:08:43 -07:00
Bryan Roe
ed418bd695
Fixed bugs on which WSAEvent was closed
2020-05-04 19:21:39 -07:00
Bryan Roe
1bd4e3d07c
Updated Windows Chain logic, to use WSAEventSelect and WaitForMultipleObjectsEx
2020-05-04 17:25:55 -07:00
Bryan Roe
10f1f53912
1. Removed usage of wcstomb_s(), which doesn't support UTF8
...
2. Added WideToUTF8_stupid() helper for API calls that give you byte count instead of character count of a non-null terminated UTF16 string
3. Fixed a few more places to support UTF8
2020-04-30 16:20:37 -07:00
Bryan Roe
71bd469551
fix
2020-04-29 03:01:44 -07:00
Bryan Roe
3843d0173d
1. Added NULL reference check
...
2. Removed suspend/resume duktape call
2020-04-23 19:53:57 -07:00
Bryan Roe
54b291187b
1. Fixed compiler warning when NO_IFADDR is defined
...
2. Added pthread_timedjoin_np() workaround for older glibc/gcc
2020-04-23 16:47:57 -07:00
Bryan Roe
6cfd62ed42
1. Added sem_timedwait to macos
...
2. Added Workaround for pthread_timedjoin_np() for macos
2020-04-21 16:22:39 -07:00
Bryan Roe
28db019101
1. Added ability to spawn joinable threads on linux
...
2. Added ILibThread_TimedJoin()
2020-04-20 21:51:55 -07:00
Bryan Roe
5ba1288cdf
Modified JS runtime to use ILibMemory_Extra to point to udata structure,
...
then used that for consistency checks
2020-04-17 15:05:47 -07:00
Bryan Roe
46aaa971ae
fixed compiler warning
2019-09-20 16:42:28 -07:00
Bryan Roe
365fe2d36f
Fixed bug where if WatchDog is specified on Linux, a compile error happens because of a typo
2019-09-19 16:35:47 -07:00
Bryan Roe
eb76a93551
Fixed compiler warnings
2019-09-09 17:44:42 -07:00
Bryan Roe
d7f0424d2c
Updated crash handler on linux, so that if a core file would've been generated on crash, it will reset/restart the signal handler, so that a core file will be generated after logging the crash.
2019-08-27 15:00:18 -07:00
Bryan Roe
fa6836d17a
Added ability to generate Dump file on crash, on Windows
2019-08-26 14:16:39 -07:00
Bryan Roe
a89a3204c1
1. Added ability to query if Select was interrupted with APC
...
2. Updated So that before readableStream and 'exit' are dispatched, APC's are unrolled if 'select' was interrupted, preventing stack corruption caused by trying to make a re-entrant winsock call, which is not supported by winsock.
2019-08-07 11:32:33 -07:00
Bryan Roe
604e853354
fixed freebsd bugs
2019-06-20 16:48:38 -07:00
Bryan Roe
124c0d386f
Initial modifications to support FreeBSD
2019-06-17 15:45:46 -07:00
Bryan Roe
bb82553fa8
1. Updated LinkedList to use ILibMemory_SmartAllocate
...
2. Updated ILibChain_Continue to flag when it exits the processing loop
3. Updated main loop to reset continuation flag at the start of each loop
2019-06-13 13:36:43 -07:00
Bryan Roe
4a11c63b6c
Fixed semaphores on MacOS
2019-06-06 18:45:42 -07:00
Bryan Roe
134f34d9cf
1. added 'ILibChain_IsLinkAlive' macro
...
2. incremental update for macos message-box
2019-05-24 15:11:27 -07:00
Bryan Roe
0aa0a8cfa4
Added ILibBase64DecodeEx
2019-03-04 14:29:52 -08:00
Bryan Roe
b9af163039
Added ability to log control channel messages
2019-02-14 14:03:33 -08:00
Bryan Roe
26a3ccefd0
Added missing includes, if NOTLS is specified for Linux
2019-02-04 12:49:44 -08:00
Bryan Roe
e9f5209552
Changed how the ForceUnblockPipe works on Linux, to not use fdopen/fdclose.
...
Also modified, so when flushing the ForceUnblockPipe, if the descriptor is invalid, it will recreate it, fixing a 100% CPU issue on linux, that seems to happen after a self-update.
2019-02-02 22:49:20 -08:00
Bryan Roe
817f2786e2
Updated 'ChainViewer'
2019-02-02 02:55:12 -08:00
Bryan Roe
aeaa229e31
1. Modified WebRTC_DataChannel to use union, to simplify struct def
...
2. Added ChainLink MetaData
3. Added 'ChainViewer' to allow JS to debug Chain events
2019-02-01 23:33:02 -08:00
Bryan Roe
1b5a6d0bc6
Updated selfupdate to use fork/execv instead of command
...
Updated SelfUpdate logging
Added SelfUpdate debugging helpers
2019-02-01 17:22:33 -08:00
Bryan Roe
ba28e98ef7
1. Fixed bug where the last result data length could include the NULL terminator if the input string length was too long.
...
2. Updated DB calls, to Get/Put will truncate the NULL terminator if it is specified in the key name
3. Updated COMPACT, so keynames will be fixed if it contains a NULL terminator
2019-01-17 18:05:26 -08:00
Bryan Roe
99ff50fcb8
Updated so compiles on OSX
...
Fixed Semaphores which were completely broken on OSX. Now uses Grand Central Dispatch Semaphores
Disabled WatchDog for Non-Isolated ScriptContainer
Updated Canary check, so it fails if the pointer is NULL
Added thread join helper
Updated RunOnMicrostackThread, to make availahle an ABORT handler
started to add SSL tracing capability for debug
2019-01-11 13:38:12 -08:00
Ylian Saint-Hilaire
3c80473a94
Major agent update.
2018-09-05 11:01:17 -07:00
Ylian Saint-Hilaire
4b5c77b4fd
Many improvements.
2018-02-11 21:11:58 -08:00
Ylian Saint-Hilaire
508646044e
Much improved, better stability, lots of fixes
2018-01-12 11:50:04 -08:00
Ylian Saint-Hilaire
becf71557f
Improved agent that can update the MeshCentral1 agent
2017-11-09 16:07:39 -08:00
Ylian Saint-Hilaire
34e09c2304
MeshAgent for MeshCentral2 Beta2 with improved crypto.
2017-10-25 21:08:41 -07:00
Ylian Saint-Hilaire
75d86eb4c8
First commit of MeshAgent for MeshCentral
2017-10-12 14:28:03 -07:00