parameters: (
              self, protocol_factory, sock,
              *, ssl=None,
              ssl_handshake_timeout=None)
return_statement: return transport, protocol
docstring: Handle an accepted connection.
  
          This is used by servers that accept connections outside of
          asyncio but that use asyncio to handle connections.
  
          This method is a coroutine.  When completed, the coroutine
          returns a (transport, protocol) pair.
docstring_summary: Handle an accepted connection.
docstring_tokens: Handle an accepted connection .
function: async def connect_accepted_socket(
              self, protocol_factory, sock,
              *, ssl=None,
              ssl_handshake_timeout=None):
          """Handle an accepted connection.
  
          This is used by servers that accept connections outside of
          asyncio but that use asyncio to handle connections.
  
          This method is a coroutine.  When completed, the coroutine
          returns a (transport, protocol) pair.
          """
          if sock.type != socket.SOCK_STREAM:
              raise ValueError(f'A Stream Socket was expected, got {sock!r}')
  
          if ssl_handshake_timeout is not None and not ssl:
              raise ValueError(
                  'ssl_handshake_timeout is only meaningful with ssl')
  
          transport, protocol = await self._create_connection_transport(
              sock, protocol_factory, ssl, '', server_side=True,
              ssl_handshake_timeout=ssl_handshake_timeout)
          if self._debug:
              # Get the socket from the transport because SSL transport closes
              # the old socket and creates a new SSL socket
              sock = transport.get_extra_info('socket')
              logger.debug("%r handled: (%r, %r)", sock, transport, protocol)
          return transport, protocol
function_tokens: async def connect_accepted_socket ( self , protocol_factory , sock , * , ssl = None , ssl_handshake_timeout = None ) : if sock . type != socket . SOCK_STREAM : raise ValueError ( f'A Stream Socket was expected, got {sock!r}' ) if ssl_handshake_timeout is not None and not ssl : raise ValueError ( 'ssl_handshake_timeout is only meaningful with ssl' ) transport , protocol = await self . _create_connection_transport ( sock , protocol_factory , ssl , '' , server_side = True , ssl_handshake_timeout = ssl_handshake_timeout ) if self . _debug : # Get the socket from the transport because SSL transport closes # the old socket and creates a new SSL socket sock = transport . get_extra_info ( 'socket' ) logger . debug ( "%r handled: (%r, %r)" , sock , transport , protocol ) return transport , protocol