Commit Graph

37 Commits

Author SHA1 Message Date
Matej Sekoranja
4b5bc38835 unsigned/size_t/shared ptrs 2012-06-15 14:47:16 +02:00
Matej Sekoranja
c31a4ed7ea Dirk's VxWorks port II. 2012-03-28 20:36:21 +02:00
Matej Sekoranja
21774ff01e Field serialization moved to pvData 2012-03-27 12:02:23 +02:00
Matej Sekoranja
8464aacbef header cleanup 2011-10-20 15:40:53 +02:00
Matej Sekoranja
4e22433de1 wildcharMatcher removed, headers cleaned from using statements 2011-10-20 15:10:31 +02:00
Matej Sekoranja
0eb299b843 AtomicBoolean for _closed flag 2011-10-06 20:40:33 +02:00
Matej Sekoranja
6a51e31a30 fixed AtomicBoolen 2011-10-06 15:47:14 +02:00
Matej Sekoranja
e79de9d46d testing AtomicBoolean for _closed flag 2011-10-06 13:53:43 +02:00
Matej Sekoranja
5810d81526 right byteOrder flaga 2011-09-20 21:20:36 +02:00
Matej Sekoranja
d03ac9d00f TCP read fixed, some unactive alignment code added 2011-09-20 17:37:28 +02:00
Matej Sekoranja
409c1f17d7 byte order independent code, transportRevision is int8 2011-09-18 10:06:37 +02:00
jrowlandls
267d486073 window: used osiSock to discover broadcast addresses, used more portable types, replaced two instances of variable length stack allocation with std::vector 2011-09-16 11:54:33 +01:00
Matej Sekoranja
633801c2ae RTEMS support; using namespace removed from headers 2011-09-13 09:56:39 +02:00
Matej Sekoranja
ee0d56fcae locking order fixed 2011-08-29 08:34:21 +02:00
Marty Kraimer
2ee024ecb8 include files put into include/pv 2011-06-07 08:31:41 -04: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
f268ec5f8d volatile cleanup 2011-02-07 15:35:52 +01:00
Matej Sekoranja
d0db4588ee mm of TransportSender 2011-02-01 00:38:11 +01: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
Matej Sekoranja
f1f7ad2709 Context, ChannelSearchManager cyc. dep. resolved 2011-01-09 22:41:05 +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
3c03971939 Fixed core dumps. Transport client now finishes successfully. 2011-01-07 13:01:48 +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
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
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
miha_vitorovic
02478fa61e Added class 'BlockingServerTCPTransport'. 2011-01-04 13:17:12 +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
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
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
2202d88020 blockingTCPTransport - work in progress. 2010-12-29 15:01:42 +01:00