diff --git a/README.md b/README.md index 6736546..03d5912 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ## 📖 Description IACore is a high-performance, battery-included C++20 foundation library designed to eliminate "dependency hell." It bundles essential systems—IPC, Logging, Networking, Compression, and Async Scheduling—into a single, coherent API. -Originally developed as the internal core for IASoft (PVT) LTD., it is now open-source to provide a standardized bedrock for C++ applications. +Originally developed as the internal core for IASoft (PVT) LTD., it is now open-source to provide a standardized bedrock for C++ applications where performance matters. ## ✨ Features @@ -26,13 +26,13 @@ Originally developed as the internal core for IASoft (PVT) LTD., it is now open- * **💾 File I/O:** Memory-mapped file operations and optimized binary stream readers/writers. * **📦 Compression:** Unified API for Zlib, Gzip, and Zstd. * **📜 Logging:** Thread-safe, colored console and disk logging. -* **⚡ Modern C++:** Heavily uses C++20 concepts, `std::span`, and `tl::expected` for error handling. +* **⚡ Modern C++:** Heavily utilizes modern C++20 concepts, `std::span`, and `tl::expected` for error handling. ## 🛠️ Integration IACore is built with CMake. You can include it in your project via `FetchContent` or by adding it as a subdirectory. -Note: On Windows, you must have VCPKG installed and the VCPKG_ROOT environment variable set, for OpenSSL support. +**Note:** On Windows, you must have **VCPKG** installed and the `VCPKG_ROOT` environment variable set, for OpenSSL support. ### CMake Example ```cmake @@ -148,7 +148,7 @@ IACore is a dual-licensed product. To offer commercial licenses to proprietary s We are currently establishing a **Contributor License Agreement (CLA)** process. Once that is in place, we will open the core library for contributions, provided the contributor signs the CLA to assign copyright or grant an unlimited license to the project maintainers. -If you find a critical bug in `Src/`, please open an **Issue** rather than a PR, and the core team will implement the fix to ensure legal compliance. +If you find a critical bug in `Src/`, please open an **Issue** rather than a PR, and the core team will implement a fix ASAP. ## 🤝 Credits & Acknowledgements **IACore** is an architectural effort by **IASoft (PVT) LTD.**, designed and maintained by its lead developers. diff --git a/Src/IACore/imp/cpp/IPC.cpp b/Src/IACore/imp/cpp/IPC.cpp index d5bf305..0b0a828 100644 --- a/Src/IACore/imp/cpp/IPC.cpp +++ b/Src/IACore/imp/cpp/IPC.cpp @@ -123,7 +123,7 @@ namespace IACore fcntl(m_socket, F_SETFL, O_NONBLOCK); #endif - m_recieveBuffer.resize(UINT16_MAX + 1); + m_receiveBuffer.resize(UINT16_MAX + 1); return {}; } @@ -136,8 +136,8 @@ namespace IACore RingBufferView::PacketHeader header; // Process all available messages from Manager - while (MONI->Pop(header, Span(m_recieveBuffer.data(), m_recieveBuffer.size()))) - OnPacket(header.ID, {m_recieveBuffer.data(), header.PayloadSize}); + while (MONI->Pop(header, Span(m_receiveBuffer.data(), m_receiveBuffer.size()))) + OnPacket(header.ID, {m_receiveBuffer.data(), header.PayloadSize}); UINT8 signal; const auto res = recv(m_socket, (CHAR *) &signal, 1, 0); @@ -185,7 +185,7 @@ namespace IACore // SocketOps is smart enough to track multiple inits SocketOps::Initialize(); - m_recieveBuffer.resize(UINT16_MAX + 1); + m_receiveBuffer.resize(UINT16_MAX + 1); } IPC_Manager::~IPC_Manager() @@ -266,8 +266,8 @@ namespace IACore RingBufferView::PacketHeader header; - while (node->MINO->Pop(header, Span(m_recieveBuffer.data(), m_recieveBuffer.size()))) - OnPacket(nodeID, header.ID, {m_recieveBuffer.data(), header.PayloadSize}); + while (node->MINO->Pop(header, Span(m_receiveBuffer.data(), m_receiveBuffer.size()))) + OnPacket(nodeID, header.ID, {m_receiveBuffer.data(), header.PayloadSize}); UINT8 signal; const auto res = recv(node->DataSocket, (CHAR *) &signal, 1, 0); @@ -309,7 +309,7 @@ namespace IACore return MakeUnexpected("Failed to bind unique socket"); if (listen(session->ListenerSocket, 1) != 0) - return MakeUnexpected("Failed to listen on unqiue socket"); + return MakeUnexpected("Failed to listen on unique socket"); #if IA_PLATFORM_WINDOWS u_long mode = 1; diff --git a/Src/IACore/inc/IACore/IPC.hpp b/Src/IACore/inc/IACore/IPC.hpp index f326a2b..dc40fb3 100644 --- a/Src/IACore/inc/IACore/IPC.hpp +++ b/Src/IACore/inc/IACore/IPC.hpp @@ -90,7 +90,7 @@ namespace IACore private: String m_shmName; PUINT8 m_sharedMemory{}; - Vector m_recieveBuffer; + Vector m_receiveBuffer; SocketHandle m_socket{INVALID_SOCKET}; UniquePtr MONI; // Manager Out, Node In @@ -144,7 +144,7 @@ namespace IACore PURE_VIRTUAL(VOID OnPacket(IN NativeProcessID node, IN UINT16 packetID, IN Span payload)); private: - Vector m_recieveBuffer; + Vector m_receiveBuffer; Vector> m_activeSessions; Vector> m_pendingSessions; UnorderedMap m_activeSessionMap;