/usr/include/sipxtapi/os/OsMulticastSocket.h is in libsipxtapi-dev 3.3.0~test17-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | //
// Copyright (C) 2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2004-2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////
#ifndef _OsMulticastSocket_h_
#define _OsMulticastSocket_h_
// SYSTEM INCLUDES
// APPLICATION INCLUDES
#include <os/OsDatagramSocket.h>
// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS
//: Implements multicast version of OsDatagramSocket
// This class provides the implementation of the multicast UDP datagram
class OsMulticastSocket : public OsDatagramSocket
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:
/* ============================ CREATORS ================================== */
OsMulticastSocket(int multicastPort = PORT_DEFAULT,
const char* multicastHostName = NULL,
int localHostPort = PORT_DEFAULT,
const char* localHostName = NULL);
virtual
~OsMulticastSocket();
//:Destructor
/* ============================ MANIPULATORS ============================== */
/// Joins a multicast group. Returns 0 on success.
int joinGroup(const char* multicastHostName);
//int leaveGroup(const char* multicastHostName);
/// Sets the hop count (a.k.a. TimeToLive) for outgoing multicast packets.
int setHopCount(unsigned char hopCount);
/// Enables/disables local loopback of outgoing multicast packets.
int setLoopback(bool enabled);
/* ============================ ACCESSORS ================================= */
virtual OsSocket::IpProtocolSocketType getIpProtocol() const;
//: Returns the protocol type of this socket
/* ============================ INQUIRY =================================== */
/* //////////////////////////// PROTECTED ///////////////////////////////// */
protected:
/* //////////////////////////// PRIVATE /////////////////////////////////// */
private:
OsMulticastSocket(const OsMulticastSocket& rOsMulticastSocket);
//:Disable copy constructor
OsMulticastSocket& operator=(const OsMulticastSocket& rhs);
//:Assignment operator
};
/* ============================ INLINE METHODS ============================ */
#endif // _OsMulticastSocket_h_
|