summaryrefslogtreecommitdiff
path: root/libcult/cult/os/net/multicast-socket.hxx
blob: 7aeff74657a17d624d43ce50090a27729b83e922 (plain)
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
// file      : cult/os/net/multicast-socket.hxx
// author    : Boris Kolpackov <boris@kolpackov.Net>
// copyright : Copyright (c) 2005-2010 Boris Kolpackov
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

#ifndef CULT_OS_NET_MULTICAST_SOCKET_HXX
#define CULT_OS_NET_MULTICAST_SOCKET_HXX

#include <cult/types.hxx>

#include <cult/os/net/address.hxx>
#include <cult/os/net/datagram-socket.hxx>

namespace Cult
{
  namespace OS
  {
    namespace Net
    {
      class MulticastSocket : public virtual DatagramSocket
      {
      protected:
        MulticastSocket ();

        virtual
        ~MulticastSocket ();

      public:
        virtual Void
        join (Address const& addr) = 0;

        virtual Void
        leave () = 0;
      };
    }
  }
}


#endif  // CULT_OS_NET_MULTICAST_SOCKET_HXX