Commit Graph

28 Commits

Author SHA1 Message Date
miha_vitorovic
6db84be16e - Connecting to invalid server (port) now generates an error.
- Removed usage 'ipAddrToA' from the code. Replaced with 'ipAddrToDottedIP'.
2011-01-10 15:51:35 +01:00
miha_vitorovic
df7a9fa073 Added configuration to Context and fixed all the users. 2011-01-10 14:09:58 +01:00
Matej Sekoranja
62ce32e824 merge 2011-01-09 22:50:26 +01:00
Matej Sekoranja
f1f7ad2709 Context, ChannelSearchManager cyc. dep. resolved 2011-01-09 22:41:05 +01:00
Gasper Jansa
948f706c4f merging 2011-01-09 21:45:08 +01:00
Gasper Jansa
3d59fef56e some search manager fixes 2011-01-09 21:44:38 +01:00
Matej Sekoranja
5c5305635b first successful message test 2011-01-09 20:07:03 +01:00
miha_vitorovic
8f0b4d8594 Using osiSockAddress parameter by reference wherever possible. 2011-01-07 14:42:00 +01:00
miha_vitorovic
07712cc1f7 Fixed a crash in client which happened if a server closed connection. 2011-01-07 13:29:00 +01:00
miha_vitorovic
71b9dfec6d TCP transport now basically works. Still some bugs to squash. 2011-01-07 09:53:33 +01:00
Gasper Jansa
5707815767 empty test file for channel search manager for real now :) 2011-01-06 17:19:20 +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
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
miha_vitorovic
6c3b00dc86 configure/CONFIG_SITE:
- added explicit instructions to link pthread library, since it is not included by default on Fedora linux (possibly others?)

testRemoteClientImpl.cpp:
- added "#include <memory>" needed for std::auto_ptr
2011-01-06 09:49:22 +01:00
Matej Sekoranja
0cab12ffd6 merge 2011-01-05 10:15:52 +01:00
Matej Sekoranja
bf5e3f3e19 ChannelSearchManager mocks 2011-01-05 10:14:18 +01:00
Gasper Jansa
7f528828ad merge 2011-01-04 18:44:50 +01:00
Gasper Jansa
547a648e76 Named locked pattern and some small things for beacon emitter and handler 2011-01-04 18:43:20 +01:00
Matej Sekoranja
45ec248380 merge 2011-01-04 13:16:27 +01:00
Matej Sekoranja
b6d9221a47 ctnd. work on remote client access implementation 2011-01-04 12:58:51 +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
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
Matej Sekoranja
95148e2d50 ref. counting macro, starting remote client implementation 2011-01-02 12:59:33 +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