1
"""0MQ Socket class declaration."""
4
# Copyright (c) 2010 Brian E. Granger
6
# This file is part of pyzmq.
8
# pyzmq is free software; you can redistribute it and/or modify it under
9
# the terms of the Lesser GNU General Public License as published by
10
# the Free Software Foundation; either version 3 of the License, or
11
# (at your option) any later version.
13
# pyzmq is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# Lesser GNU General Public License for more details.
18
# You should have received a copy of the Lesser GNU General Public License
19
# along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#-----------------------------------------------------------------------------
24
#-----------------------------------------------------------------------------
30
cdef void *handle # The C handle for the underlying zmq object.
31
cdef public int socket_type # The 0MQ socket type - REQ,REP, etc.
32
# Hold on to a reference to the context to make sure it is not garbage
33
# collected until the socket it done with it.
34
cdef public object context # The zmq Context object that owns this.
35
cdef public object closed # bool property for a closed socket.