pub.hpp 1.27 KB
Newer Older
1
/*
2 3
    Copyright (c) 2007-2011 iMatix Corporation
    Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
4 5 6 7

    This file is part of 0MQ.

    0MQ is free software; you can redistribute it and/or modify it under
8
    the terms of the GNU Lesser General Public License as published by
9 10 11 12 13 14
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.

    0MQ is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
    GNU Lesser General Public License for more details.
16

17
    You should have received a copy of the GNU Lesser General Public License
18 19 20
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

21 22
#ifndef __ZMQ_PUB_HPP_INCLUDED__
#define __ZMQ_PUB_HPP_INCLUDED__
23

24
#include "xpub.hpp"
25 26 27 28

namespace zmq
{

29
    class pub_t : public xpub_t
30 31 32
    {
    public:

Martin Sustrik's avatar
Martin Sustrik committed
33
        pub_t (class ctx_t *parent_, uint32_t tid_);
34 35
        ~pub_t ();

36 37 38 39
        //  Implementations of virtual functions from socket_base_t.
        int xrecv (class msg_t *msg_, int flags_);
        bool xhas_in ();

40 41 42
    private:

        pub_t (const pub_t&);
43
        const pub_t &operator = (const pub_t&);
44 45 46 47 48
    };

}

#endif