qmsk/net/py.pyx
author Tero Marttila <terom@fixme.fi>
Tue, 01 Sep 2009 00:04:26 +0300
changeset 46 64b4ffb44754
parent 11 7ae92c2b433f
permissions -rw-r--r--
add CallbackEvent helper, and move getaddrinfo from endpoint into its own function
11
7ae92c2b433f move libc+py back to qmsk.net.x
Tero Marttila <terom@fixme.fi>
parents: 7
diff changeset
     1
from qmsk.net.py cimport *
7
74fde84264b1 broke Cython with this package magic
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     2
74fde84264b1 broke Cython with this package magic
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     3
cdef int raise_errno (char *func) except -1 :
74fde84264b1 broke Cython with this package magic
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     4
    PyErr_SetFromErrno(PyExc_OSError)
74fde84264b1 broke Cython with this package magic
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     5
74fde84264b1 broke Cython with this package magic
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     6
    return -1
74fde84264b1 broke Cython with this package magic
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     7