Commit Graph

153 Commits

Author SHA1 Message Date
peri4 caa7880cc4 get rid of piForeach
apply some code analyzer recommendations
ICU flag now check if libicu exists
prepare for more accurate growth of containers (limited PoT, then constantly increase size)
2024-11-20 20:01:47 +03:00
peri4 57f8c1313e first release of translation facility
* runtime - loading and translating
 * design-time - works with *.ts file (pip_tr utility)
 * compile-time - CMake macro for compile *.ts
2024-11-05 13:49:00 +03:00
peri4 cd7e053fc5 version 4.2.0
move toStdFunction() to pibase.h
refactor PIParseHelper, now it much more abstract and useful
fix PIIODevice::createFromFullPath() when whitespaces at start or end are presence
PIStreamPacker add events for start and end packet receive
PIClientServer::ClientBase add virtual methods for start and end packet receive. also one can enable diagnostics with enableDiagnostics() method
PICout now call flush() on each end of output
add PIString::entries(const PIString & str)
2024-10-15 12:02:18 +03:00
peri4 aa963a4bda PIEthernet on error close disconnect 2024-09-17 16:50:22 +03:00
peri4 bdd18b614f PIEthernet more accuracy construct
PIThread windows fix
2024-09-17 16:11:18 +03:00
peri4 e186e0adff shorter thread names 2024-09-17 15:58:06 +03:00
peri4 f105f616f6 PIThread more accurate end, PIEthernet tcpserver client no reinit 2024-09-17 13:22:20 +03:00
peri4 224412e20a PIDir::temporary fix 2024-09-16 16:24:11 +03:00
peri4 000ce2a54d PICout improvement:
* renamed private members for more clear code
 * registerExternalBufferID() method to obtain unique ID for withExternalBuffer()
 * PICoutManipulators::PICoutStdStream enum for select stream (stdout or stderr)
 * Constructors now accept optional stream
 * piCerr and piCerrObj macros

PIDir::temporary() moved to "mkdtemp"

PILog:
 * now 4 levels
 * you can set max level
 * Error writes to piCerr
2024-09-16 16:06:07 +03:00
peri4 996b7ea403 important:
* PIThread::~PIThread() now unregister itself from introspection, if terminates than show warning
 * PISystemMonitor now correctly stops
 * PIPeer now can correctly stopAndWait
 * PIPeer::destroy(), protected method for close all eths and threads
 * new PIINTROSPECTION_STOP macro
 * Introspection now can be correctly stopped by macro, more safety

ClientServer:
 * ClientBase::close() stop and disconnect channel
 * Server clients clean-up now event-based
 * No warnings on client destructor
2024-09-12 17:07:48 +03:00
peri4 da4b09be9e PIEthernet fix tcp-server close (properly delete all clients)
PIEthernet::stopThreadedListen() method
decompose client to 2 implementations - server-side and client-side
2024-09-11 21:41:55 +03:00
peri4 0d94699206 first try, works 2024-09-11 10:18:45 +03:00
peri4 7d02f710ea add PIPackedTCP 2024-08-02 14:43:42 +03:00
peri4 1c7fc39b6c version 4.0.0_alpha
in almost all methods removed timeouts in milliseconds, replaced to PISystemTime
PITimer rewrite, remove internal impl, now only thread implementation, API similar to PIThread
PITimer API no longer pass void*
PIPeer, PIConnection improved stability on reinit and exit
PISystemTime new methods
pisd now exit without hanging
2024-07-30 14:18:02 +03:00
peri4 f041d1435e PIIODevice::waitThreadedReadFinished now periodically (100 ms) call interrupt() 2024-07-10 18:36:29 +03:00
peri4 903b320629 version 3.21.0
add PISystemTime overload for thread/timer/io classes
2024-07-09 16:32:27 +03:00
peri4 a86e8f7b58 PIIOTextStream(PIString * string) now with mandatory Mode 2024-05-02 21:35:29 +03:00
peri4 a745f803b3 version 3.17.1
add PINonTriviallyCopyable struct
add PISerial check for error on Windows on every read()
2024-04-10 20:49:27 +03:00
peri4 021411defa PIConfig adopt for PIIOString changes 2024-04-05 20:41:07 +03:00
peri4 9283c88b4e version 3.17.0
finally properly works PIIOString inside PIIOStream
2024-04-05 15:34:38 +03:00
peri4 8d585439bb add PIChunkStream::getData(int id)
fix some COM on Windows
fix PIPacketExtractor
2024-04-04 20:50:44 +03:00
peri4 ebf2b08bb1 PIPacketExtractor fix 2024-04-04 12:34:00 +03:00
peri4 3fa5d9d9df cloud inspecting ... 2024-03-15 19:49:37 +03:00
peri4 50bff12364 map and cloud fix, add cloud debug 2024-02-22 17:10:38 +03:00
peri4 6b87536d8d usb fix 2024-01-17 18:32:06 +03:00
peri4 0907a3eb13 version 3.14.0
PIBinaryStream::wasReadError() method, remove incomplete read asserts
2023-08-30 12:18:04 +03:00
andrey 66fb93ba88 change PIMap::at and add const to PIMap and PIBinaryLog 2023-07-13 12:32:45 +03:00
peri4 b19d50ba62 linux 2023-07-06 21:48:42 +03:00
andrey 8ad2503c5a pichar and pistring explicit test 2023-07-06 18:37:42 +03:00
peri4 ccae1a7311 more literals, use some in PIP, small refactor PIThread::start (clang-format mistakes) 2023-07-02 14:02:10 +03:00
andrey 58dcf7ba69 small fixes 2023-05-12 11:47:21 +03:00
peri4 1de4304e30 PIBinaryLog createIndexOnFly, loadIndex, saveIndex features
PIFile readAll and writeAll static methods
2023-05-11 21:44:31 +03:00
peri4 dea29429bf PIBinaryLog support for uint ID 2023-05-03 22:12:56 +03:00
peri4 ee7251c17c PIDir::name() 2023-04-22 23:22:23 +03:00
peri4 254649aa10 PIIOTextStream for strings fix 2023-04-07 19:43:56 +03:00
peri4 6d3b7c8543 version 3.10.0
PIDir::CurrentDirOverrider and PIDir::absolute
2023-04-05 11:56:58 +03:00
andrey d66f7efb3c fix include 2023-03-21 14:48:08 +03:00
peri4 0cd1206f94 version 3.9.0, add PIEthernet::NoDelay parameter 2023-03-21 10:14:05 +03:00
peri4 504fc5c896 small fixes 2023-03-14 17:41:12 +03:00
peri4 c64a1beefa PISerial::readDevice 2023-01-09 15:39:46 +03:00
peri4 677ae06df8 PIIODevice::readForTime fix 2023-01-09 15:35:20 +03:00
peri4 5c16953d95 PIVariant, PIGPIO 2023-01-09 15:22:51 +03:00
peri4 f355cfc05e some PIFile functionality
PIBinaryLog::close fix
2022-12-26 14:09:05 +03:00
peri4 81cbf905ba PIValueTree add attributes 2022-12-20 16:10:38 +03:00
peri4 2ac215c19e separate PIEthernet::Address to PINetworkAddress, typedef PIEthernet::Address to PINetworkAddress and mark as deprecated
PIValueTree new attributes for File and Dir
2022-12-19 14:29:18 +03:00
peri4 a98176f513 PISerial Windows read fix 2022-12-18 14:23:19 +03:00
peri4 c2b8a8d6da code format 2022-12-14 14:13:52 +03:00
peri4 430a41fefc before formatting 2022-12-14 13:56:19 +03:00
peri4 0bd45ec49b friend with UNICODE macro on windows 2022-12-07 09:33:46 +03:00
peri4 e9128771db version 3.6.0
another fixes in PIEthernet
remove PIThread::interrupt()
piwaitevent patches
2022-11-12 13:31:26 +03:00