Commit Graph

20 Commits

Author SHA1 Message Date
Matej Sekoranja
4dcb439955 header cleanup 2011-10-20 10:54:09 +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
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
f7742d3eb0 Status changes 2011-02-17 01:22:08 +01:00
Matej Sekoranja
d8f81d79db MM cleanup 2011-01-20 19:01:25 +01:00
Matej Sekoranja
6c19ea34b2 broadcast list fix. 2011-01-11 16:05:31 +01:00
miha_vitorovic
23569b4919 Defining SA_LEN macro to correctly calculate the next sockaddr offset 2011-01-11 09:03:20 +01:00
miha_vitorovic
4381e85143 Fixing compile error because of missing 'sa_len' field. 2011-01-11 08:34:37 +01:00
Matej Sekoranja
349a8217f7 merge and broadcast addresses fix 2011-01-10 17:51:30 +01:00
Matej Sekoranja
a87b9e72e7 search req. accepted 2011-01-10 16:34:56 +01:00
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
596034d6c6 Added debug build to the project
Fixes to getBroadcastAddresses().
2011-01-10 11:23:31 +01:00
miha_vitorovic
e40d6a9d12 getBroadcastAddresses working. 2011-01-09 20:59:02 +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
387d8aa0dc Some final fixes to addressUtils regarding byte-order. 2011-01-07 08:58:17 +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
fe5ea9442c A working blockingUDPTransport with test.
TODO: debug stopping listener thread.
2010-12-28 15:47:05 +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
6bebb6594c - Added inetAddressUtil.
- Fixed Makefiles to use a single pvData library.
2010-12-10 09:52:22 +01:00