miha_vitorovic
487882dbff
- 'getBroadcastAddresses' now accepts a port as parameter which in then used in all returned broadcast addresses.
...
- 'getBroadcastAddresses' now returns a default broadcast address (255.255.255.255) on failure, if no other broadcast address was found.
2011-01-10 16:13:23 +01:00
miha_vitorovic
44516e8a40
GrowingCircularBuffer template specialization for pointers done.
2011-01-10 15:37:25 +01:00
miha_vitorovic
4e96a20766
ArrayFIFO template specialization for pointers done.
2011-01-10 15:18:15 +01:00
miha_vitorovic
4b8bb07d61
Merge
2011-01-10 11:24:14 +01:00
miha_vitorovic
596034d6c6
Added debug build to the project
...
Fixes to getBroadcastAddresses().
2011-01-10 11:23:31 +01:00
Gasper Jansa
948f706c4f
merging
2011-01-09 21:45:08 +01:00
miha_vitorovic
2dcc2eb486
Merge with 7c40a236787c9744303bb30e6ee9cb2ec81c2215
2011-01-09 21:02:50 +01:00
miha_vitorovic
f6a9148bc3
Removed TODO from the comment for getBroadcastAddresses
2011-01-09 21:00:37 +01:00
miha_vitorovic
e40d6a9d12
getBroadcastAddresses working.
2011-01-09 20:59:02 +01:00
Gasper Jansa
e26e05bfbf
epics mutex now used in named lock pattern
2011-01-09 20:15:00 +01:00
Gasper Jansa
8644741cfa
merging
2011-01-07 18:47:13 +01:00
Gasper Jansa
932406e847
configuration implementation and test
2011-01-07 18:46:25 +01:00
miha_vitorovic
29db197035
inetAddressUtil.cpp:
...
- the ported version of 'getBroadcastAddresses' compiles. TODO - test and debug.
2011-01-07 16:28:42 +01:00
miha_vitorovic
3c03971939
Fixed core dumps. Transport client now finishes successfully.
2011-01-07 13:01:48 +01:00
miha_vitorovic
387d8aa0dc
Some final fixes to addressUtils regarding byte-order.
2011-01-07 08:58:17 +01:00
Gasper Jansa
95fdf3e410
merging
2011-01-06 17:14:26 +01:00
Gasper Jansa
512bc514e6
Small fixes and empty channel search manager test
2011-01-06 17:12:35 +01:00
miha_vitorovic
25d6336efa
Merge with c53f510976d631f0602c377e31010184e35bce79
2011-01-06 15:00:26 +01:00
miha_vitorovic
8339c338de
blockingServerTCPTransport.cpp:
...
- using enum to specify command.
BlockingTCPAcceptor.cpp:
- added 'destroy()' to dtor
- added parentheses to expressions
blockingTCPCinnector.cpp:
- fixed log message
blockingTCPTransport.cpp:
- added _socketAddress allocation
- fixed waiting for timeout in 'waitUntilVerified'
- fixed how many bytes are copied from the buffer
responseHandlers.cpp:
- added 'ConnectionValidationHandler' implementation
- added 'ConnectionValidationHandler' to 'ServerResponseHandler'
responseHandlers.h:
- added 'ConnectionValidationHandler' declaration
inetAddressUtil.cpp:
- fixed all issues with sockaddr_in byte-order
- removed function 'processAddressForList', using EPICSv3 'aToIPAddr' instead
inetAddressUtilsTest.cpp:
- fixed the tests in accordance with the correct function implementation
testBlockingUDPClnt.cpp:
- deleting transport at the end of the test
testBlockingTCPSrv.cpp, testBlockingTCPClnt.cpp:
- added tests (work in progress).
Makefile:
- added blockingTCP tests
2011-01-06 14:58:32 +01:00
Matej Sekoranja
3c1b9d9743
MacOSX port, this needs to be portable... epicsMutex, but there is no timedlock.
2011-01-05 18:02:09 +01:00
miha_vitorovic
5f6652af0b
- Moved osiSockAddr comparators to 'inetAddressUtil.h'
...
- moved serve response handler implementation(s) to '/server' and fixed #includes and Makefile
2011-01-05 10:29:46 +01:00
miha_vitorovic
544fc6bd73
Added NamedLockPattern to BlockingTCPConnector and resolved some warnings and compilation/linker errors.
...
Reference to '__sync_add_and_fetch' and '__sync_sub_and_fetch' removed for now, since it is glibc version specific.
2011-01-05 09:20:51 +01:00
miha_vitorovic
5ec1adfacb
Merge with additions from Gasper Jansa
2011-01-04 23:48:59 +01:00
miha_vitorovic
6a6e9d6256
Makefile:
...
- added 'server' folder
- added 'blockingTCPAcceptor.cpp' and 'responseHandlers.cpp' to 'remote'
blockingTCP.h:
- added 'public' specifier to 'BlockingServerTCPTransport'
- added 'BlockingTCPAcceptor' class declaration
blockingTCPAcceptor.cpp:
- implementation
blockingTCPConnector.cpp:
- 'sizeof(optval)' -> 'sizeof(int)'
remote.h:
- enum 'MessageCommands'
- added class declarations:
* AbstractResponseHandler
* AbstractServerResponseHandler
* BadResponse
* ServerResponseHandler
responseHandlers.cpp:
- implementation of various response handlers
serverContext.h:
- dummy implementation
growingCircularBuffer.h:
- removed empty line
2011-01-04 23:47:07 +01:00
Gasper Jansa
7f528828ad
merge
2011-01-04 18:44:50 +01:00
Gasper Jansa
435164bd60
Named lock pattern now for real
2011-01-04 18:43:56 +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
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
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
fe5ea9442c
A working blockingUDPTransport with test.
...
TODO: debug stopping listener thread.
2010-12-28 15:47:05 +01:00
gjansa
bc3ce27494
Using == operator on fields
2010-12-28 10:06:18 +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
Gasper Jansa
c203989cbd
Introspection registry implementation
2010-12-27 10:48:01 +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
Matej Sekoranja
a18f7f54a5
change make to build only one library
2010-12-19 15:25:51 +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