Strip off the constructor delegation after all to broaden compiler compability.

This commit is contained in:
Rolf Ahrenberg 2017-11-19 15:25:31 +02:00
parent 8be58070ad
commit e008ee04b2
3 changed files with 12 additions and 3 deletions

2
README
View File

@ -171,7 +171,7 @@ Notes:
parameters:
$ cat /proc/sys/net/core/rmem_default
$ cat /proc/sys/net/core/rmem_max
Acknowledgements:
- Big thanks to Digital Devices GmbH for providing the Octopus Net

View File

@ -28,8 +28,16 @@
#endif
cSatipSocket::cSatipSocket()
: cSatipSocket(0)
: socketPortM(0),
socketDescM(-1),
isMulticastM(false),
useSsmM(false),
streamAddrM(htonl(INADDR_ANY)),
sourceAddrM(htonl(INADDR_ANY)),
rcvBufSizeM(0)
{
debug1("%s", __PRETTY_FUNCTION__);
memset(&sockAddrM, 0, sizeof(sockAddrM));
}
cSatipSocket::cSatipSocket(size_t rcvBufSizeP)

View File

@ -20,13 +20,14 @@ private:
in_addr_t streamAddrM;
in_addr_t sourceAddrM;
size_t rcvBufSizeM;
bool CheckAddress(const char *addrP, in_addr_t *inAddrP);
bool Join(void);
bool Leave(void);
public:
cSatipSocket();
cSatipSocket(size_t rcvBufSizeP);
explicit cSatipSocket(size_t rcvBufSizeP);
virtual ~cSatipSocket();
bool Open(const int portP = 0, const bool reuseP = false);
bool OpenMulticast(const int portP, const char *streamAddrP, const char *sourceAddrP);