bareos: dev 9ae9a42f

Author Committer Branch Timestamp Parent
franku franku dev 2018-08-10 14:20 dev f74a3156 Pending
Changeset bsock: improved constructor and implemented assignment operator

- BareosSocket: cleared all variables in standard constructor
- BareosSocket: implemented an assignment operator
- BareosSocketTCP: clone uses assignment instead of memcpy
- BareosSocketTCP: clone duplicates existing file descriptors and strings
- BareosSocketTCP: destroy() now closes file descriptors
- added test for standard constructor
mod - core/src/lib/bsock.cc Diff File
mod - core/src/lib/bsock.h Diff File
mod - core/src/lib/bsock_tcp.cc Diff File
mod - core/src/lib/unittests/bsock_test.cc Diff File