parameters: (cls, server, **kwargs)
return_statement: return cls(client, ownsock=True, **kwargs)
docstring: Return a session for the next connection to the given socket.
docstring_summary: Return a session for the next connection to the given socket.
docstring_tokens: Return a session for the next connection to the given socket .
function: def from_server_socket(cls, server, **kwargs):
          """Return a session for the next connection to the given socket."""
          client, _ = server.accept()
          return cls(client, ownsock=True, **kwargs)
function_tokens: def from_server_socket ( cls , server , * * kwargs ) : client , _ = server . accept ( ) return cls ( client , ownsock = True , * * kwargs )