~ubuntu-branches/ubuntu/wily/pyzmq/wily

« back to all changes in this revision

Viewing changes to zmq/core/socket.pxd

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2013-02-24 19:23:15 UTC
  • mfrom: (1.2.1) (9 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: package-import@ubuntu.com-20130224192315-qhmwp3m3ymk8r60d
Tags: 2.2.0.1-1
* New upstream release
* relicense debian packaging to LGPL-3
* update watch file to use github directly
  thanks to Bart Martens for the file
* add autopkgtests
* drop obsolete DM-Upload-Allowed
* bump standard to 3.9.4, no changes required

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""0MQ Socket class declaration."""
2
2
 
3
3
#
4
 
#    Copyright (c) 2010 Brian E. Granger
 
4
#    Copyright (c) 2010-2011 Brian E. Granger & Min Ragan-Kelley
5
5
#
6
6
#    This file is part of pyzmq.
7
7
#
20
20
#
21
21
 
22
22
#-----------------------------------------------------------------------------
 
23
# Imports
 
24
#-----------------------------------------------------------------------------
 
25
 
 
26
from context cimport Context
 
27
 
 
28
#-----------------------------------------------------------------------------
23
29
# Code
24
30
#-----------------------------------------------------------------------------
25
31
 
31
37
    cdef public int socket_type # The 0MQ socket type - REQ,REP, etc.
32
38
    # Hold on to a reference to the context to make sure it is not garbage
33
39
    # 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.
 
40
    cdef public Context context # The zmq Context object that owns this.
 
41
    cdef public bint _closed   # bool property for a closed socket.
 
42
    cdef dict _attrs   # dict needed for *non-sockopt* get/setattr in subclasses
 
43
    cdef int _pid # the pid of the process which created me (for fork safety)
 
44
 
 
45
    # cpdef methods for direct-cython access:
 
46
    cpdef object send(self, object data, int flags=*, copy=*, track=*)
 
47
    cpdef object recv(self, int flags=*, copy=*, track=*)
36
48