Commit Graph
113 Commits
Author SHA1 Message Date
Brad Arant 989aee9482 Normalize line endings to LF on the files touched by the TLS fix
The previous commit picked up CRLF line endings from a Windows-side
working copy used during development. Converting to plain LF to match
the rest of this Linux-native repo - content unchanged, this is purely
a line-ending normalization (932 insertions/932 deletions, 1:1).
2026-08-22 19:52:14 -07:00
Brad Arant 701d03dcd9 Fix TLS read/write dispatch on tls branch
TCPSocket inherits from both Socket and TLS, both declaring receiveData()
as unrelated sibling methods - only Socket::receiveData was virtual, so
TLS::receiveData (SSL_read) was never reached regardless of TLS config,
and even when reached its result was never forwarded to onDataReceived
(that call was commented out). Added an explicit TCPSocket::receiveData
override dispatching to TLS::receiveData or Socket::receiveData based on
tlsInfo, and completed TLS::receiveData to actually return/forward the
decrypted bytes.

Write path did not exist at all. Added Socket::sendData() as a new
virtual hook mirroring receiveData, routed Socket::writeSocket() through
it instead of a raw ::write(), added TLS::sendData() (SSL_write, same
error-handling style as the existing TLS methods), and TCPSocket::sendData()
dispatching the same way the read side does.

Also fixed: a queued write in writeSocket() was being popped off the fifo
as if sent even when shutDown was true and nothing was actually written;
removed a dead empty if(tlsInfo){} stub in onDataReceived, no longer
needed now dispatch happens one level up; replaced leftover debug
std::cout lines with proper Log() calls matching the rest of the file.

Verified via full local compile: all 20 .cpp files build clean, link
into libServerCore.a, and nm confirms the new/fixed symbols are correctly
defined in the right object files.
2026-08-22 19:51:08 -07:00
Brad Arant 5feabd0fde TLS almost connects. Needs read and write logic finished. 2025-02-20 15:33:28 -08:00
Brad Arant e0c0e2c07e Some work - trying to catch up to where I was. 2025-02-19 16:18:50 -08:00
Brad Arant 96e73d6341 some testing stuff. 2025-02-17 15:22:01 -08:00
Brad Arant df0e7cd6da some TLS work. 2025-01-28 16:26:40 -08:00
Brad Arant f9c12f4ba2 Adding testing functions. 2024-07-30 16:44:33 -07:00
Brad Arant e9cf447512 TCPSession2 is gone. publish commands are gone but usable if you put them in your server. 2024-07-30 16:22:36 -07:00
Brad Arant a391882541 Made server a pointer for eliminating TCPSession2. 2024-07-30 15:59:25 -07:00
Brad Arant 6c7fc7d28f Minor documentation changes. 2024-07-11 15:45:33 -07:00
Brad Arant 6ded352265 Fixed merge for some reason. 2024-07-10 13:39:55 -07:00
Brad Arant b7deabc5dc Rework for TLS. 2024-07-10 13:30:18 -07:00
brad Arant 48e2c27c3c Wierd reason after pull of new branch. 2024-07-09 20:07:59 -07:00
Brad Arant 519faa535b Beginning of TLS workings. 2024-07-09 17:07:04 -07:00
Brad Arant b2bdb522b3 Minor code cleanup. 2024-07-09 15:01:53 -07:00
Brad Arant fa3ab3f110 Adjusted code to C++23. 2024-07-09 14:30:24 -07:00
Brad Arant bbf904729f Merge branch 'master' into develop 2024-03-20 10:59:47 -07:00
Brad Arant 8b6d29b728 Delete hex files for ipch and bin files. 2024-01-18 15:37:43 -08:00
Brad Arant b04664b213 Do I need this? 2024-01-18 15:34:31 -08:00
Brad Arant 48be555724 fixed prolem with SessionFilter. 2023-06-12 15:25:03 -07:00
Brad Arant 043e725035 added sendToAll on Subscriptions that allows a SessionFilter object to be used to filter the list. 2023-06-12 15:15:12 -07:00
Brad Arant 29c49cc1dd set *owner pointer to session requesting publish. 2023-06-12 15:12:32 -07:00
Brad Arant cb2a61bed9 Added a method to send to all subscribers on subscription. 2023-06-12 12:41:14 -07:00
Brad Arant e78f0cd4f8 Fixed subscription handler logic. 2023-06-12 08:52:44 -07:00
Brad Arant b4fd28e41a Repaired subscription functions with new Subscription object parameters. 2023-06-11 20:21:49 -07:00
Brad Arant 5f61a2280d attempt to delete the documentation from repository since its generated. 2023-06-11 15:03:25 -07:00
Brad Arant 2bca178a06 Deleted html stuff and trying to ignore it. 2023-06-11 14:15:02 -07:00
Brad Arant 8c9f4117ae Cleaned up the subscription handler stuff.' 2023-06-10 19:27:22 -07:00
Brad Arant b40cb9f5a4 Added support for the SubscriptionHandlerFactory object. 2023-06-10 16:01:56 -07:00
Brad Arant 0ef782a11c Added subscription to handler list so subscription can be accessed from handler. 2023-06-09 20:16:04 -07:00
Brad Arant cfa70c5863 Fixed multithread sync issue and duplicate thread on termination. 2023-03-11 21:55:33 -08:00
Brad Arant b0118cfc56 subscriber work 2023-03-10 12:55:46 -08:00
Brad Arant 9b9e12d03c session 2023-03-08 13:56:52 -08:00
Brad Arant b63b4785cf Synced up to Matts code. 2023-02-11 17:24:25 -08:00
Brad Arant d8eb3d7bb2 merged in publish handlers. 2023-02-09 11:38:09 -08:00
Brad Arant f1d019e1e0 updated stuff. 2023-02-07 20:07:12 -08:00
Brad Arant 42827ce98e ip address fix 2023-02-07 19:41:16 -08:00
Brad 5821853007 nothing really 2023-02-08 03:38:48 +00:00
Brad 1e76a7f49a setup ignore update for .history files. 2023-02-08 03:31:51 +00:00
Brad Arant a426f435ff Socket modifications 2022-11-19 10:22:09 -08:00
Brad Arant fd31b9e842 After merge with branch subscription. 2022-10-25 20:41:29 -07:00
Brad Arant de1f778a0e After pull conflict resolution. 2022-10-25 20:38:59 -07:00
Brad Arant 9992a12b38 After pull conflict resolution. 2022-10-25 20:37:47 -07:00
Brad Arant 0dc5d5738e Fixed writing issue during write to another socket. 2022-10-25 20:33:50 -07:00
Brad Arant db199eaec3 ? 2022-10-18 19:06:28 -07:00
Brad Arant fd70c79282 Create TCPSession2 for outpubound connections. 2022-10-17 20:03:23 -07:00
Brad 001cd8c06c Added SubscriptionHandler capability to Subscriptions. 2022-10-18 02:37:46 +00:00
Brad 69dcbae428 output/main and cpp sproperties. 2022-10-13 17:50:13 +00:00
Brad Arant 5c87225c6f Documentation updates. 2022-07-28 09:54:31 -07:00
Brad Arant 9af17daed6 Fixing command list delimiter depth. 2022-07-26 16:07:37 -07:00