Module ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Raise Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body TryExcept body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareLt NameLoad Num body Return AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Num Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad Return TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Num orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad Num body Raise Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareEq NameLoad Num CompareGt NameLoad NameLoad body Assign NameStore NameLoad TryExcept body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareEq NameLoad Num CompareGt NameLoad NameLoad body Assign NameStore NameLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad NameLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str AugAssignAdd AttributeStore NameLoad attr Num decorator_list Assign AttributeStore NameLoad attr ListLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str AugAssignSub AttributeStore NameLoad attr Num If CompareGt AttributeLoad NameLoad attr Num body Return Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr ListLoad Str NameLoad decorator_list Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad keyword ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad Str attr For NameStore TupleLoad Str body If UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad Str Assert Call NameLoad NameLoad Str NameLoad Assert CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str keyword Str keyword NameLoad keyword Call NameLoad NameLoad keyword Call NameLoad Str NameLoad keyword Call NameLoad Str NameLoad keyword Call NameLoad Str NameLoad NameLoad
N/A pypy.interpreter.baseobjspace Wrappable pypy.interpreter.typedef TypeDef make_weakref_descr interp_attrproperty pypy.interpreter.gateway ObjSpace W_Root NoneNotWrapped pypy.interpreter.gateway interp2app pypy.rlib.rarithmetic intmask pypy.rlib.rsocket RSocket AF_INET SOCK_STREAM pypy.rlib.rsocket SocketError SocketErrorWithErrno pypy.interpreter.error OperationError pypy.interpreter gateway W_RSocket N/A Wrappable RSocket N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self clear_all_weakrefs N/A N/A N/A self close N/A accept_w N/A N/A self space N/A N/A N/A accept() -> (socket object, address info)

        Wait for an incoming connection.  Return a new socket representing the
        connection, and the address of the client.  For IP sockets, the address
        info is a pair (hostaddr, port).
         N/A N/A N/A N/A sock addr N/A N/A self accept W_RSocket N/A N/A N/A space newtuple N/A N/A N/A space wrap sock N/A N/A addr as_object space N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A accept_w unwrap_spec N/A self ObjSpace bind_w N/A N/A self space w_addr N/A N/A N/A bind(address)
        
        Bind the socket to a local address.  For IP sockets, the address is a
        pair (host, port); the host must refer to the local host. For raw packet
        sockets the address is a tuple (ifname, proto [,pkttype [,hatype]])
         N/A N/A N/A N/A N/A self bind N/A N/A self addr_from_object space w_addr N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A bind_w unwrap_spec N/A self ObjSpace W_Root close_w N/A N/A self space N/A N/A N/A close()

        Close the socket.  It cannot be used after this call.
         N/A N/A N/A N/A N/A self close N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A close_w unwrap_spec N/A self ObjSpace connect_w N/A N/A self space w_addr N/A N/A N/A connect(address)

        Connect the socket to a remote address.  For IP sockets, the address
        is a pair (host, port).
         N/A N/A N/A N/A N/A self connect N/A N/A self addr_from_object space w_addr N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A TypeError N/A e N/A N/A N/A OperationError N/A space w_TypeError N/A N/A space wrap N/A str e N/A N/A N/A connect_w unwrap_spec N/A self ObjSpace W_Root connect_ex_w N/A N/A self space w_addr N/A N/A N/A connect_ex(address) -> errno
        
        This is like connect(address), but returns an error code (the errno value)
        instead of raising an exception when an error occurs.
         N/A error N/A N/A self connect_ex N/A N/A self addr_from_object space w_addr N/A N/A N/A space wrap error N/A N/A N/A connect_ex_w unwrap_spec N/A self ObjSpace W_Root dup_w N/A N/A self space N/A N/A N/A N/A N/A N/A N/A self dup W_RSocket N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A dup_w unwrap_spec N/A self ObjSpace fileno_w N/A N/A self space N/A N/A N/A fileno() -> integer

        Return the integer file descriptor of the socket.
         N/A N/A N/A fd N/A N/A self fileno N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A space wrap N/A intmask fd N/A N/A N/A fileno_w unwrap_spec N/A self ObjSpace getpeername_w N/A N/A self space N/A N/A N/A getpeername() -> address info

        Return the address of the remote endpoint.  For IP sockets, the address
        info is a pair (hostaddr, port).
         N/A N/A N/A addr N/A N/A self getpeername N/A N/A N/A addr as_object space N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A getpeername_w unwrap_spec N/A self ObjSpace getsockname_w N/A N/A self space N/A N/A N/A getsockname() -> address info

        Return the address of the local endpoint.  For IP sockets, the address
        info is a pair (hostaddr, port).
         N/A N/A N/A addr N/A N/A self getsockname N/A N/A N/A addr as_object space N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A getsockname_w unwrap_spec N/A self ObjSpace getsockopt_w N/A N/A self space level optname w_buflen N/A NoneNotWrapped N/A N/A getsockopt(level, option[, buffersize]) -> value

        Get a socket option.  See the Unix manual for level and option.
        If a nonzero buffersize argument is given, the return value is a
        string of that length; otherwise it is an integer.
         N/A N/A w_buflen None N/A N/A N/A N/A N/A N/A space wrap N/A N/A self getsockopt_int level optname N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A buflen N/A N/A space int_w w_buflen N/A N/A N/A space wrap N/A N/A self getsockopt level optname buflen N/A N/A N/A getsockopt_w unwrap_spec N/A self ObjSpace int int W_Root gettimeout_w N/A N/A self space N/A N/A N/A gettimeout() -> timeout

        Returns the timeout in floating seconds associated with socket
        operations. A timeout of None indicates that timeouts on socket
         N/A timeout N/A N/A self gettimeout N/A N/A timeout 0.0 N/A N/A N/A space w_None N/A N/A N/A space wrap timeout N/A N/A N/A gettimeout_w unwrap_spec N/A self ObjSpace listen_w N/A N/A self space backlog N/A N/A N/A listen(backlog)

        Enable a server to accept connections.  The backlog argument must be at
        least 1; it specifies the number of unaccepted connection that the system
        will allow before refusing new connections.
         N/A N/A N/A N/A N/A self listen backlog N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A listen_w unwrap_spec N/A self ObjSpace int makefile_w N/A N/A self space w_mode w_buffsize N/A r -1 N/A N/A makefile([mode[, buffersize]]) -> file object

        Return a regular file object corresponding to the socket.
        The mode and buffersize arguments are as for the built-in open() function.
         N/A N/A app_makefile space self w_mode w_buffsize N/A N/A N/A makefile_w unwrap_spec N/A self ObjSpace W_Root W_Root recv_w N/A N/A self space buffersize flags N/A 0 N/A N/A recv(buffersize[, flags]) -> data

        Receive up to buffersize bytes from the socket.  For the optional flags
        argument, see the Unix manual.  When no data is available, block until
        at least one byte is available or until the remote end is closed.  When
        the remote end is closed and all data is read, return the empty string.
         N/A N/A N/A data N/A N/A self recv buffersize flags N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A space wrap data N/A N/A N/A recv_w unwrap_spec N/A self ObjSpace nonnegint int recvfrom_w N/A N/A self space buffersize flags N/A 0 N/A N/A recvfrom(buffersize[, flags]) -> (data, address info)

        Like recv(buffersize, flags) but also return the sender's address info.
         N/A N/A N/A N/A data addr N/A N/A self recvfrom buffersize flags N/A addr N/A N/A w_addr N/A N/A addr as_object space N/A N/A w_addr N/A space w_None N/A N/A N/A space newtuple N/A N/A N/A space wrap data w_addr N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A recvfrom_w unwrap_spec N/A self ObjSpace nonnegint int send_w N/A N/A self space data flags N/A 0 N/A N/A send(data[, flags]) -> count

        Send a data string to the socket.  For the optional flags
        argument, see the Unix manual.  Return the number of bytes
        sent; this may be less than len(data) if the network is busy.
         N/A N/A N/A count N/A N/A self send data flags N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A space wrap count N/A N/A N/A send_w unwrap_spec N/A self ObjSpace bufferstr int sendall_w N/A N/A self space data flags N/A 0 N/A N/A sendall(data[, flags])

        Send a data string to the socket.  For the optional flags
        argument, see the Unix manual.  This calls send() repeatedly
        until all data is sent.  If an error occurs, it's impossible
        to tell how much data has been sent.
         N/A N/A N/A count N/A N/A self sendall data flags N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A sendall_w unwrap_spec N/A self ObjSpace bufferstr int sendto_w N/A N/A self space data w_param2 w_param3 N/A NoneNotWrapped N/A N/A sendto(data[, flags], address) -> count

        Like send(data, flags) but allows specifying the destination address.
        For IP sockets, the address is a pair (hostaddr, port).
         N/A N/A w_param3 None N/A N/A flags 0 N/A w_addr w_param2 N/A N/A flags N/A N/A space int_w w_param2 N/A w_addr w_param3 N/A N/A N/A addr N/A N/A self addr_from_object space w_addr N/A count N/A N/A self sendto data flags addr N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A space wrap count N/A N/A N/A sendto_w unwrap_spec N/A self ObjSpace bufferstr W_Root W_Root setblocking_w N/A N/A self space flag N/A N/A N/A setblocking(flag)

        Set the socket to blocking (flag is true) or non-blocking (false).
        setblocking(True) is equivalent to settimeout(None);
        setblocking(False) is equivalent to settimeout(0.0).
         N/A N/A N/A self setblocking N/A bool flag N/A N/A N/A setblocking_w unwrap_spec N/A self ObjSpace int setsockopt_w N/A N/A self space level optname w_optval N/A N/A N/A setsockopt(level, option, value)

        Set a socket option.  See the Unix manual for level and option.
        The value argument can either be an integer or a string.
         N/A N/A N/A optval N/A N/A space int_w w_optval N/A N/A N/A N/A optval N/A N/A space str_w w_optval N/A N/A N/A N/A N/A self setsockopt level optname optval N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A N/A N/A N/A self setsockopt_int level optname optval N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A setsockopt_w unwrap_spec N/A self ObjSpace int int W_Root settimeout_w N/A N/A self space w_timeout N/A N/A N/A settimeout(timeout)

        Set a timeout on socket operations.  'timeout' can be a float,
        giving in seconds, or None.  Setting a timeout of None disables
        the timeout feature and is equivalent to setblocking(1).
        Setting a timeout of zero is the same as setblocking(0).
         N/A N/A N/A space is_w w_timeout N/A space w_None N/A N/A timeout -1.0 N/A N/A timeout N/A N/A space float_w w_timeout N/A N/A timeout 0.0 N/A N/A N/A OperationError N/A space w_ValueError N/A N/A space wrap Timeout value out of range N/A N/A N/A self settimeout timeout N/A N/A N/A settimeout_w unwrap_spec N/A self ObjSpace W_Root recv_into_w N/A N/A self space w_buffer nbytes flags N/A 0 0 N/A N/A rwbuffer N/A N/A space rwbuffer_w w_buffer N/A lgt N/A N/A rwbuffer getlength N/A N/A N/A nbytes 0 N/A nbytes lgt N/A N/A nbytes lgt N/A N/A N/A N/A N/A space wrap N/A N/A self recvinto rwbuffer nbytes flags N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A recv_into_w unwrap_spec N/A self ObjSpace W_Root int int recvfrom_into_w N/A N/A self space w_buffer nbytes flags N/A 0 0 N/A N/A rwbuffer N/A N/A space rwbuffer_w w_buffer N/A lgt N/A N/A rwbuffer getlength N/A N/A N/A nbytes 0 N/A nbytes lgt N/A N/A nbytes lgt N/A N/A N/A N/A readlgt addr N/A N/A self recvfrom_into rwbuffer nbytes flags N/A addr N/A N/A w_addr N/A N/A addr as_object space N/A N/A w_addr N/A space w_None N/A N/A N/A space newtuple N/A N/A N/A space wrap readlgt w_addr N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A recvfrom_into_w unwrap_spec N/A self ObjSpace W_Root int int shutdown_w N/A N/A self space how N/A N/A N/A shutdown(flag)

        Shut down the reading side of the socket (flag == SHUT_RD), the
        writing side of the socket (flag == SHUT_WR), or both ends
        (flag == SHUT_RDWR).
         N/A N/A N/A N/A N/A self shutdown how N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A shutdown_w unwrap_spec N/A self ObjSpace int N/A usecount 1 _reuse_w N/A N/A self N/A N/A N/A _resue()

        Increase the usecount of the socketobject.
        Intended only to be used by socket._socketobject
         N/A N/A self usecount 1 N/A N/A N/A _reuse_w unwrap_spec N/A self _drop_w N/A N/A self space N/A N/A N/A _drop()

        Decrease the usecount of the socketobject. If the
        usecount reaches 0 close the socket.
        Intended only to be used by socket._socketobject
         N/A N/A self usecount 1 N/A N/A N/A self usecount 0 N/A N/A N/A N/A N/A self close_w space N/A N/A N/A _drop_w unwrap_spec N/A self ObjSpace N/A N/A app_makefile N/A N/A N/A N/A gateway applevel 
def makefile(self, mode="r", buffersize=-1):
    """makefile([mode[, buffersize]]) -> file object

    Return a regular file object corresponding to the socket.
    The mode and buffersize arguments are as for the built-in open() function.
    """
    import os
    newfd = os.dup(self.fileno())
    return os.fdopen(newfd, mode, buffersize)
 filename __file__ interphook makefile newsocket N/A N/A space w_subtype family type proto N/A AF_INET SOCK_STREAM 0 N/A N/A N/A N/A sock N/A W_RSocket family type proto N/A N/A N/A SocketError N/A e N/A N/A N/A converted_error space e N/A N/A N/A space wrap sock N/A N/A descr_socket_new N/A interp2app newsocket unwrap_spec N/A ObjSpace W_Root int int int converted_error N/A N/A space e N/A N/A N/A message N/A N/A e get_msg N/A w_module N/A N/A space getbuiltinmodule _socket N/A w_exception_class N/A N/A space getattr w_module N/A N/A space wrap N/A e applevelerrcls N/A N/A isinstance e SocketErrorWithErrno N/A N/A w_exception N/A N/A space call_function w_exception_class N/A N/A space wrap N/A e errno N/A N/A space wrap message N/A N/A w_exception N/A N/A space call_function w_exception_class N/A N/A space wrap message N/A N/A OperationError w_exception_class w_exception N/A N/A socketmethodnames N/A N/A 
accept bind close connect connect_ex dup fileno
getpeername getsockname getsockopt gettimeout listen makefile
recv recvfrom send sendall sendto setblocking
setsockopt settimeout shutdown _reuse _drop recv_into recvfrom_into
 split N/A name N/A dup N/A N/A N/A N/A hasattr RSocket name N/A N/A N/A N/A socketmethodnames remove name N/A socketmethods N/A N/A methodname socketmethodnames N/A N/A method N/A getattr W_RSocket N/A methodname _w N/A N/A hasattr method unwrap_spec methodname N/A N/A N/A N/A N/A method im_func func_code co_argcount N/A len N/A method unwrap_spec methodname N/A N/A socketmethods N/A methodname N/A interp2app method unwrap_spec N/A method unwrap_spec N/A N/A W_RSocket typedef N/A TypeDef _socket.socket __doc__ socket([family[, type[, proto]]]) -> socket object

Open a socket of the given type.  The family argument specifies the
address family; it defaults to AF_INET.  The type argument specifies
whether this is a stream (SOCK_STREAM, this is the default)
or datagram (SOCK_DGRAM) socket.  The protocol argument defaults to 0,
specifying the default protocol.  Keyword arguments are accepted.

A socket object represents one endpoint of a network connection.

Methods of socket objects (keyword arguments not allowed):

accept() -- accept a connection, returning new socket and client address
bind(addr) -- bind the socket to a local address
close() -- close the socket
connect(addr) -- connect the socket to a remote address
connect_ex(addr) -- connect, return an error code instead of an exception
dup() -- return a new socket object identical to the current one [*]
fileno() -- return underlying file descriptor
getpeername() -- return remote address [*]
getsockname() -- return local address
getsockopt(level, optname[, buflen]) -- get socket options
gettimeout() -- return timeout or None
listen(n) -- start listening for incoming connections
makefile([mode, [bufsize]]) -- return a file object for the socket [*]
recv(buflen[, flags]) -- receive data
recvfrom(buflen[, flags]) -- receive data and sender's address
sendall(data[, flags]) -- send all data
send(data[, flags]) -- send data, may not send all of it
sendto(data[, flags], addr) -- send data to a given address
setblocking(0 | 1) -- set or clear the blocking I/O flag
setsockopt(level, optname, value) -- set socket options
settimeout(None | float) -- set or clear the timeout
shutdown(how) -- shut down traffic in one or both directions

 [*] not available on all platforms! __new__ descr_socket_new __weakref__ N/A make_weakref_descr W_RSocket type N/A interp_attrproperty type W_RSocket proto N/A interp_attrproperty proto W_RSocket family N/A interp_attrproperty family W_RSocket socketmethods