Back to index

python3.2  3.2.2
Classes | Defines | Typedefs
socketmodule.h File Reference
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  sock_addr
struct  PySocketSockObject
struct  PySocketModule_APIObject

Defines

#define Py__SOCKET_H
#define PySocket_MODULE_NAME   "_socket"
#define PySocket_CAPI_NAME   "CAPI"
#define PySocket_CAPSULE_NAME   PySocket_MODULE_NAME "." PySocket_CAPI_NAME
#define SIZEOF_SOCKET_T   SIZEOF_INT
#define PyLong_FromSocket_t(fd)   PyLong_FromLong((SOCKET_T)(fd))
#define PyLong_AsSocket_t(fd)   (SOCKET_T)PyLong_AsLong(fd)
#define PySocketModule_ImportModuleAndAPI()   PyCapsule_Import(PySocket_CAPSULE_NAME, 1)

Typedefs

typedef int SOCKET_T
typedef union sock_addr sock_addr_t

Class Documentation

union sock_addr

Definition at line 105 of file socketmodule.h.

struct PySocketModule_APIObject

Definition at line 196 of file socketmodule.h.

Collaboration diagram for PySocketModule_APIObject:
Class Members
PyObject * error
PyTypeObject * Sock_Type
PyObject * timeout_error

Define Documentation

#define Py__SOCKET_H

Definition at line 73 of file socketmodule.h.

#define PyLong_AsSocket_t (   fd)    (SOCKET_T)PyLong_AsLong(fd)

Definition at line 98 of file socketmodule.h.

#define PyLong_FromSocket_t (   fd)    PyLong_FromLong((SOCKET_T)(fd))

Definition at line 97 of file socketmodule.h.

#define PySocket_CAPI_NAME   "CAPI"

Definition at line 80 of file socketmodule.h.

Definition at line 81 of file socketmodule.h.

#define PySocket_MODULE_NAME   "_socket"

Definition at line 79 of file socketmodule.h.

Definition at line 202 of file socketmodule.h.

Definition at line 93 of file socketmodule.h.


Typedef Documentation

typedef union sock_addr sock_addr_t
typedef int SOCKET_T

Definition at line 92 of file socketmodule.h.