qmsk/net/transport/endpoint.py
changeset 35 50dc1517f797
parent 32 2168a9ffaef7
child 37 14db3fe42b6c
equal deleted inserted replaced
34:5ce1f16ee3fa 35:50dc1517f797
    33         """
    33         """
    34 
    34 
    35         flags = 0
    35         flags = 0
    36 
    36 
    37         if passive :
    37         if passive :
    38             flags |= socket.AI_PASSIVE
    38             flags |= constants.AI_PASSIVE
    39 
    39 
    40         return self.getaddrinfo(0, family, socktype, protocol, flags)
    40         return self.getaddrinfo(family, socktype, protocol, flags)
    41 
    41 
    42 class UnixAddr (Endpoint) :
    42 class UnixAddr (Endpoint) :
    43     """
    43     """
    44         A local AF_UNIX address, as a path.
    44         A local AF_UNIX address, as a path.
    45     """
    45     """