Commit Graph

20 Commits

Author SHA1 Message Date
Matej Sekoranja
8464aacbef header cleanup 2011-10-20 15:40:53 +02:00
Matej Sekoranja
c64d8b343c destroy cleanup 2011-10-06 21:25:58 +02:00
Matej Sekoranja
24d8cb96a3 adaptive byte-order 2011-09-18 20:45:18 +02:00
Matej Sekoranja
54d435972b new ByteBuffer support 2011-09-08 11:15:36 +02:00
Matej Sekoranja
ee0d56fcae locking order fixed 2011-08-29 08:34:21 +02:00
Matej Sekoranja
872135a4b1 new logging, SIGPIPE and other handled 2011-08-25 15:17:36 +02:00
Marty Kraimer
2ee024ecb8 include files put into include/pv 2011-06-07 08:31:41 -04:00
Matej Sekoranja
484da96da6 shared_pointer cycles 2011-05-17 23:32:39 +02:00
Matej Sekoranja
1da4173535 shared_pointer const & 2011-05-13 14:02:06 +02:00
Matej Sekoranja
c36ba5264d port from pvAccessCPP-md 2011-05-12 12:47:55 +02:00
Marty Kraimer
753e6d246b Make * to & changes due to changes in pvData. 2011-02-18 08:20:27 -05:00
Matej Sekoranja
5cb78eac05 TCP transport cleanup, lots of printf still in use 2011-01-24 18:07:37 +01:00
Matej Sekoranja
b23e7f13d8 memory management fixes 2011-01-23 23:47:13 +01:00
miha_vitorovic
b63373ba03 Using %u to display size_type variable - avoid warning. 2011-01-12 16:05:13 +01:00
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
Matej Sekoranja
f1f7ad2709 Context, ChannelSearchManager cyc. dep. resolved 2011-01-09 22:41:05 +01:00
miha_vitorovic
3c03971939 Fixed core dumps. Transport client now finishes successfully. 2011-01-07 13:01:48 +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
0af1781b5e Added connected clients tracking to BlockingTCPAcceptor. For each new connection a new 'BlockingServerTCPTransport' object is created, but was never released.
The acceptor now stores all the objects in a set, and registers a callback with the client, to be notified when the connection is closed. On notification the client is them removed from the set and the memory is released.
When the acceptor is destroyed, it also closes and deleted all the connected clients.
2011-01-05 13:36:07 +01:00
miha_vitorovic
02478fa61e Added class 'BlockingServerTCPTransport'. 2011-01-04 13:17:12 +01:00