1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00

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: parameters:
$ cat /proc/sys/net/core/rmem_default $ cat /proc/sys/net/core/rmem_default
$ cat /proc/sys/net/core/rmem_max $ cat /proc/sys/net/core/rmem_max
Acknowledgements: Acknowledgements:
- Big thanks to Digital Devices GmbH for providing the Octopus Net - Big thanks to Digital Devices GmbH for providing the Octopus Net

View File

@ -28,8 +28,16 @@
#endif #endif
cSatipSocket::cSatipSocket() 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) cSatipSocket::cSatipSocket(size_t rcvBufSizeP)

View File

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