Commit Graph

39 Commits

Author SHA1 Message Date
zimoch 40300a12cb replaced tabs with spaces 2020-04-15 08:17:03 -07:00
Michael Davidsaver 6dd1346ace further dead code 2019-05-21 08:54:14 -07:00
Michael Davidsaver a6e7d7f5fc Remove dead code
aliveNotification() and unresponsiveTransport() never called.
Remove these, and code only referenced through these methods.
2019-05-21 08:54:14 -07:00
Michael Davidsaver 64453e1f1a split client/server protocol version 2019-05-21 08:51:01 -07:00
Michael Davidsaver 3a2a3ac148 remove unused getSocketReceiveBufferSize() 2019-05-20 17:48:10 -07:00
Michael Davidsaver 0084b6e60a de-virt Transport::getRevision()
Makes clear that this is/was only for TCP,
and eliminate redundant storage.  Also apply
locking to this storage.

Use header version directly in search handler.
Correct as only UDP search is actually used atm.
2019-05-20 17:48:10 -07:00
Michael Davidsaver fa484a883a redo security (aka. access control)
Break up monolithic SecurityPlugin API into three parts.

1. Authentication.
2. Authorization.
3. Access Control decision.  Left to ChannelProviders
2019-01-12 15:14:19 -08:00
Michael Davidsaver 7a523dd948 drop unused NOMINMAX 2018-05-18 15:20:26 -07:00
Michael Davidsaver 9b828852c0 Transport::getRemoteAddress() return reference
make it clear that result is always !NULL
2018-02-01 19:09:44 -08:00
Michael Davidsaver 58f996fd98 update transportRegistry
avoid leaks of SOCKET and leaving mutex locked
when exceptions are thrown.
2018-02-01 18:54:25 -08:00
Michael Davidsaver 576b241faa consolidate TransportClient and ChannelImpl as ClientChannelImpl 2017-11-06 15:51:43 -06:00
Michael Davidsaver 0fde239f23 std::auto_ptr -> epics::auto_ptr 2017-11-06 12:37:42 -06:00
Michael Davidsaver 5e900b1f11 remove super abstract authNZInitialize(void*)
with separate client and server calls.

Still dynamic_cast ugliness as Transport and Codec
hierarchies don't have a common root.
2017-11-05 16:41:59 -06:00
Michael Davidsaver 3283bed413 drop PVA_ALIGNMENT constant
This will forevermore be 1, so no
reason to incur complexity of testing this.

size % PVA_ALIGNMENT -> 0
alignBuffer(PVA_ALIGNMENT) -> no-op
alignedValue(val, PVA_ALIGNMENT) -> val
2017-05-24 17:20:17 -04:00
Michael Davidsaver 87dca19708 codec: avoid indirection when accessing buffers
avoid some indirection to make this code easier to follow.
move buffer lower limit to base class.
2017-05-24 17:20:17 -04:00
Michael Davidsaver b05e7699b5 remove no-op lock/unlock from Lock sub-classes 2017-05-24 17:20:17 -04:00
Andrew Johnson 9a8644033d Prevent redefinition of NOMINMAX
While this protection is not strictly necessary here, if someone
does a cut-and-paste into a header file it should be included.
2016-04-06 15:22:11 -05:00
Matej Sekoranja 5279d247ca general indent beautification 2016-03-10 23:36:16 +01:00
Matej Sekoranja 9b6fdaaaff rtems: reference to 'Thread' is ambiguous 2016-03-03 00:29:54 +01:00
Michael Davidsaver b9dd9e8e6c getRemoteName()
Cache the TCP peer address as a string and pass it to createChannel().
2015-12-14 17:04:57 -05:00
Michael Davidsaver 4a1bfff40f Remove clearSendQueue
Use BreakTransport exception instead
2015-12-14 16:59:55 -05:00
Michael Davidsaver 730d30fe54 AbstractCodec use fair_queue 2015-12-14 16:59:55 -05:00
Matej Sekoranja ecaba2dcfb testCodec test fixed 2015-02-18 12:49:26 +01:00
Matej Sekoranja 9aab7420b4 vxworks warnings 2014-11-26 13:52:15 +01:00
Matej Sekoranja 8541ffa5e9 rtems/vxworks compiler warnings 2014-11-26 13:15:46 +01:00
Matej Sekoranja 8a2abf09b2 access security 2014-09-09 14:28:43 +02:00
Matej Sekoranja 85db68a1ea clang port 2014-08-13 23:49:18 +02:00
Matej Sekoranja c01b928836 server/client flag, _lastSegmentedMessageType != 0 comparison fix 2014-07-22 00:35:29 +02:00
Matej Sekoranja ba4102639e String -> std::string, toString methods removed 2014-06-19 14:29:41 +02:00
Matej Sekoranja b101fa1e7a protocol change: connection validation/authNZ support 2014-06-09 12:39:29 +02:00
Matej Sekoranja 892961f85f catcing all std exceptions in sendThread (and readThread) 2014-06-02 21:17:56 +02:00
Matej Sekoranja b2d2734b58 TCP vs UDP initialization order, logging handling 2014-03-26 14:02:16 +01:00
Matej Sekoranja ca2828c6dc trace log removal, old codec files removed 2014-03-26 12:42:50 +01:00
Matej Sekoranja 0230d5f241 codec valgrind clean, fast search and UDP shutdown, robust testSum service 2014-03-25 20:50:21 +01:00
Matej Sekoranja eb12372535 tests: testPlan count adj 2014-02-14 22:06:43 +01:00
Matej Sekoranja a9c6ed6af8 codec: minor code fixes, codec endian test checks 2014-02-13 22:46:19 +01:00
damjankumar 5ab2ead581 internalDestroy problem solved + memory leak fixed in abstract codec 2014-02-13 15:52:02 +01:00
damjankumar 5f0f7b9fde testing push 2014-02-13 15:35:49 +01:00
Matej Sekoranja ae73e7c2ed codec implementation with lots of tests commited 2014-02-11 11:17:14 +01:00