Public Member Functions | Static Public Member Functions | Public Attributes
tornado.tcpclient._Connector Class Reference

List of all members.

Public Member Functions

def __init__
def clear_timeout
def on_connect_done
def on_timeout
def set_timout
def start
def try_connect

Static Public Member Functions

def split

Public Attributes

 connect
 future
 io_loop
 last_error
 remaining
 secondary_addrs
 timeout

Detailed Description

A stateless implementation of the "Happy Eyeballs" algorithm.

"Happy Eyeballs" is documented in RFC6555 as the recommended practice
for when both IPv4 and IPv6 addresses are available.

In this implementation, we partition the addresses by family, and
make the first connection attempt to whichever address was
returned first by ``getaddrinfo``.  If that connection fails or
times out, we begin a connection in parallel to the first address
of the other family.  If there are additional failures we retry
with other addresses, keeping one connection attempt per family
in flight at a time.

http://tools.ietf.org/html/rfc6555

Definition at line 33 of file tcpclient.py.


Constructor & Destructor Documentation

def tornado.tcpclient._Connector.__init__ (   self,
  addrinfo,
  io_loop,
  connect 
)

Definition at line 50 of file tcpclient.py.


Member Function Documentation

Definition at line 131 of file tcpclient.py.

def tornado.tcpclient._Connector.on_connect_done (   self,
  addrs,
  af,
  addr,
  future 
)

Definition at line 100 of file tcpclient.py.

Definition at line 127 of file tcpclient.py.

def tornado.tcpclient._Connector.set_timout (   self,
  timeout 
)

Definition at line 123 of file tcpclient.py.

def tornado.tcpclient._Connector.split (   addrinfo) [static]
Partition the ``addrinfo`` list by address family.

Returns two lists.  The first list contains the first entry from
``addrinfo`` and all others with the same family, and the
second list contains all other addresses (normally one list will
be AF_INET and the other AF_INET6, although non-standard resolvers
may return additional families).

Definition at line 61 of file tcpclient.py.

Definition at line 80 of file tcpclient.py.

def tornado.tcpclient._Connector.try_connect (   self,
  addrs 
)

Definition at line 85 of file tcpclient.py.


Member Data Documentation

Definition at line 50 of file tcpclient.py.

Definition at line 50 of file tcpclient.py.

Definition at line 50 of file tcpclient.py.

Definition at line 50 of file tcpclient.py.

Definition at line 50 of file tcpclient.py.

Definition at line 50 of file tcpclient.py.

Definition at line 50 of file tcpclient.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Wed Sep 13 2017 03:18:20