2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.framework;
10 import java.net.InetSocketAddress;
13 * Specifies connection attributes.
15 public interface ProtocolConnection {
18 * Returns address to which the connection should bind.
19 * @return inet socket address
21 InetSocketAddress getPeerAddress();
24 * Returns listener for the session.
25 * @return listener for the session
27 SessionListener getListener();
30 * Returns session preferences (attributes for Open object).
31 * @return session preferences
33 SessionPreferences getProposal();
36 * Returns session preferences checker.
37 * @return session preferences checker
39 SessionPreferencesChecker getProposalChecker();