Commit Graph
47 Commits
Author SHA1 Message Date
miha_vitorovic 02478fa61e Added class 'BlockingServerTCPTransport'. 2011-01-04 13:17:12 +01:00
miha_vitorovic 328472f939 Merge with changes from Gasper Jansa 2011-01-04 12:01:14 +01:00
miha_vitorovic bd1a4e2634 Makefile: included all the new sources
blockingClientTCPTransport.cpp: implementation

blockingTCP.h:
* class BlockingTCPTransport:
  - added Context to ctor
  - added 'virtual' declaration to overrides
  - 'priority' is now 'int16'
* added class 'BlockingClientTCPTransport'

blockingTCPConnector.cpp: implementation

blockingTCPTransport.cpp:
* removed 'transportRegistry' added 'context'

blockingUDP.h:
* added missing override 'getIntrospectionRegistry'
* 'BlockingUDPConnector::_priority' is now 'int16' instead of 'short'

blockingUDPConnector.cpp:
* 'connect' parameter priority is now 'int16' instead of 'short'
* fixed and added error logging

remote.h:
* added 'TransportRegistry' forward declaration
* added 'Transport::getIntrospectionRegistry' prototype
* changed 'Connector::connect' prototype parameter 'priority': 'short'->'int16'
* added 'Context' interface
* added 'ReferenceCountingTransport' interface

transportRegistry.h:
* added 'Transport' forward declaration

testRemoteClientImpl.cpp:
* added '#include <transportRegistry.h>' to fix compile error
* lots of auto-format changes

transportRegistryTest.cpp:
*
2011-01-04 11:58:00 +01:00
Gasper Jansa a2798bb3b7 merging 2011-01-03 14:47:42 +01:00
Gasper Jansa 854a78d393 Transport Registry map uses osiSockAddr as key 2011-01-03 14:46:16 +01:00
miha_vitorovic 9b99f6f389 Merge with commit from Gasper Jansa 2011-01-03 14:31:50 +01:00
miha_vitorovic b6df9a4d89 blockingTCP.h: added TransportRegistry, removed "using namespace"
BlockingTCPTransport: added TransportRegistry, using osiSock.h functions wherever possible
blockingUDP.h: removed "using namespace"
blockingUDPConnector.cpp: using osiSock.h functions wherever possible
blockingUDPTransport: using osiSock.h functions wherever possible, delete -> delete[]
remote.h: removed "using namespace"
arrayFIFO.h: fixed default ctor, delete -> delete[]
growingCircularBuffer.h: delete -> delete[]
testBlockingUDPClnt.cpp: using osiSock.h functions wherever possible
testBlockingUDPCSrv.cpp: using osiSock.h functions wherever possible
2011-01-03 14:30:38 +01:00
Gasper Jansa 0a43e1104c beaconEmitter and handler (not finished) 2011-01-03 09:58:35 +01:00
miha_vitorovic 9a8c205d54 Some GrowingCircularBuffer and Mutex cleanup. 2010-12-31 12:00:40 +01:00
miha_vitorovic 16aa5fba25 Added MonitorHandler. Porting of BlockingTCPTransport now complete.
TODO: 1) check thread sync and "notify" in Java make C++ code as equivalent as possible.
2) Debug :)
2010-12-30 13:53:52 +01:00
miha_vitorovic 3fc6171075 Entire BlockingTCPTransport class ported EXCEPT 'monitorSender'. 2010-12-30 12:47:49 +01:00
miha_vitorovic c452ec3343 Merge with 0e964e46b15e05887fa9ce6e486681bf0a691654 2010-12-29 15:02:44 +01:00
miha_vitorovic 2202d88020 blockingTCPTransport - work in progress. 2010-12-29 15:01:42 +01:00
Gasper Jansa c850a2ecfb merging 2010-12-29 10:17:28 +01:00
gjansa 09076dd5bd transportRegistry added and remove of compare fields routine from introspectionRegistry 2010-12-29 09:56:43 +01:00
miha_vitorovic 15d2daef43 Some changes to how transport is destroyed. Added virtual dtor to Transport class.
In server the transport is now explicitly deleted.
2010-12-28 16:29:15 +01:00
miha_vitorovic fe5ea9442c A working blockingUDPTransport with test.
TODO: debug stopping listener thread.
2010-12-28 15:47:05 +01:00
miha_vitorovic 58f03384c2 UDP transport cleanup - closing the socket and stopping the thread; 2010-12-28 10:09:37 +01:00
gjansa bc3ce27494 Using == operator on fields 2010-12-28 10:06:18 +01:00
miha_vitorovic 16542b9e3c Set socket options based on Connector properties. 2010-12-28 09:06:38 +01:00
miha_vitorovic 06842f7890 Makefile: renamed blockingUDP header, added blockingUDPConnector.cpp
blockingUDPTransport.cpp: fixed ctor, addedmutex to 'enqueueSendRequest', started using 'sys/socket.h'
remote.h: added TransportClient and Connector classes
introspectionRegistry.h: organized #includes
2010-12-28 08:59:25 +01:00
miha_vitorovic 15ad456930 Merge with 2240b8485ef2182e083614fc304bfe7e1b6c771a 2010-12-27 14:02:31 +01:00
miha_vitorovic 54b4862e16 Finished the implementation of BlockingUDPTransport. Ready for testing and debugging. 2010-12-27 13:58:49 +01:00
Gasper Jansa c203989cbd Introspection registry implementation 2010-12-27 10:48:01 +01:00
Gasper Jansa e5aa01a576 introspection regitry implementation 2010-12-27 10:47:18 +01:00
Matej Sekoranja 7cad4455c3 merge + signed/unsigned comparison fix 2010-12-27 10:12:09 +01:00
Matej Sekoranja 6502180a9f CreateRequest 2010-12-27 10:03:25 +01:00
miha_vitorovic bf5810ff61 blockingUDPTransport - working on processRead implementation. 2010-12-24 15:00:26 +01:00
miha_vitorovic 6917f6d468 caConstants.h: removing needless declarations.
blockingUDPTransport.*: implementation - work in progress
remote.h: added file
inetAddressUtil.*: added 'inetAddressToString' function and fixed 'getSocketAddressList' declaration.
inetAddressUtilsTest.c: using the new function.

Makefile: added remote.h
2010-12-24 10:37:16 +01:00
miha_vitorovic 1617d41d4e Merge with 4060002ace66b81caef7ac32c598c42aa4e5123c 2010-12-21 10:07:05 +01:00
miha_vitorovic 20cf4fed8b Starting work on blocking tranport. 2010-12-21 10:06:42 +01:00
Matej Sekoranja 15e435ddf6 Channel::getField() 2010-12-20 23:56:29 +01:00
Matej Sekoranja 84b22522cb Destruction. 2010-12-20 19:48:06 +01:00
Matej Sekoranja 55a3a9a837 Starting MockClient implementation. 2010-12-19 21:19:28 +01:00
Matej Sekoranja a18f7f54a5 change make to build only one library 2010-12-19 15:25:51 +01:00
Matej Sekoranja 510d3766a3 Moved status and monitor to pvDataCPP 2010-12-19 13:28:55 +01:00
Matej Sekoranja dbc4067957 test directory reorganization 2010-12-19 08:56:06 +01:00
Matej Sekoranja e50b6c4436 namespace removed out of include 2010-12-18 22:24:09 +01:00
Matej Sekoranja 0e1fd21ffc MacOSX port, warnings removed 2010-12-18 20:53:17 +01:00
miha_vitorovic e40e183884 Added logger which is implemented using standard EPICSv3 logging facilities. 2010-12-10 15:12:28 +01:00
miha_vitorovic 6bebb6594c - Added inetAddressUtil.
- Fixed Makefiles to use a single pvData library.
2010-12-10 09:52:22 +01:00
miha_vitorovic b53db4c792 GrowingCircularBuffer added and tested. 2010-11-11 14:03:53 +01:00
miha_vitorovic 5379cd638a - Finished the ArrayFIFO test and debugged the implementation.
- Moved all the local #include directives to the top of the files, to catch any missing global #include directives.
2010-11-11 09:14:39 +01:00
miha_vitorovic f53aad747c Added utils and tests for it. It's a work in progress. ArrayFIFOTest is still not finished. 2010-11-10 14:17:36 +01:00
Matej Sekoranja 620f0f0681 ChannelAccessFactory implemented and tested 2010-11-03 16:07:20 +01:00
Matej Sekoranja 980b53256e now it compiles 2010-11-03 12:46:22 +01:00
Matej Sekoranja 038e99b5c9 Initial directory structure 2010-11-03 10:32:17 +01:00